26 lines
882 B
YAML
26 lines
882 B
YAML
---
|
|
# tasks file for grub_themes
|
|
|
|
- name: install b grub
|
|
pacman:
|
|
name: grub
|
|
state: present
|
|
|
|
- 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.sh -b --{{ theme |lower}} # 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/
|
|
become: yes
|
|
when: themecheck.stat.exists == False
|