grub_themes/tasks/main.yml

21 lines
817 B
YAML
Raw Normal View History

2019-04-11 11:09:29 +02:00
---
# tasks file for grub_themes
- name: check if theme is install
stat:
path: /boot/grub/themes/{{theme}}/
register: themecheck
- name: download grub2themes repo
git:
dest: /tmp/grub2-themes # required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).
repo: https://github.com/vinceliuice/grub2-themes.git # required. git, SSH, or HTTP(S) protocol address of the git repository.
when: themecheck.stat.exists == False
- name: install theme
shell: ./Install # required. Path to the local script file followed by optional arguments.,There is no parameter actually named 'free form', see the examples!
args:
chdir: /tmp/grub2-themes/grub-theme-{{ theme |lower}}/
become: yes
when: themecheck.stat.exists == False