grub_themes/tasks/main.yml

26 lines
882 B
YAML
Raw Normal View History

2019-04-11 11:09:29 +02:00
---
# tasks file for grub_themes
2020-10-06 17:29:40 +02:00
- name: install b grub
2019-04-11 18:54:12 +02:00
pacman:
name: grub
state: present
2019-04-11 11:09:29 +02:00
- 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
2020-09-24 20:12:27 +02:00
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!
2019-04-11 11:09:29 +02:00
args:
2020-09-24 20:12:27 +02:00
chdir: /tmp/grub2-themes/
2019-04-11 11:09:29 +02:00
become: yes
when: themecheck.stat.exists == False