mirror of
https://github.com/gjkcz/ansible-void.git
synced 2024-12-22 19:26:38 +01:00
Crate role for Bakaláři
This commit is contained in:
parent
78f53019c5
commit
f76fcf2cc9
4
roles/bakalari/defaults/main.yaml
Normal file
4
roles/bakalari/defaults/main.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
bakalari_desktop_src: bakalari.desktop
|
||||||
|
bakalari_desktop_dest: /usr/share/applications/bakalari.desktop
|
||||||
|
bakalari_icon_src: bakalari.png
|
||||||
|
bakalari_icon_dest: /usr/share/icons/bakalari.png
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
21
roles/bakalari/tasks/main.yaml
Normal file
21
roles/bakalari/tasks/main.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
- name: Ensure the applications directory exists
|
||||||
|
file:
|
||||||
|
path: /usr/share/applications
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Ensure the icons directory exists
|
||||||
|
file:
|
||||||
|
path: /usr/share/icons
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Copy Bakaláři desktop shortcut
|
||||||
|
copy:
|
||||||
|
src: bakalari.desktop
|
||||||
|
dest: /usr/share/applications/bakalari.desktop
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Copy Bakaláři icon
|
||||||
|
copy:
|
||||||
|
src: bakalari.png
|
||||||
|
dest: /usr/share/icons/bakalari.png
|
||||||
|
mode: 0644
|
@ -266,9 +266,8 @@
|
|||||||
loop:
|
loop:
|
||||||
- "files/firefox/uBlock0@raymondhill.net.xpi"
|
- "files/firefox/uBlock0@raymondhill.net.xpi"
|
||||||
|
|
||||||
|
|
||||||
- name: Bakaláři
|
- name: Bakaláři
|
||||||
hosts: teachers
|
hosts: teachers
|
||||||
tasks:
|
roles:
|
||||||
- name: Bakaláři
|
- bakalari
|
||||||
include_role:
|
|
||||||
name: bakalari
|
|
||||||
|
Loading…
Reference in New Issue
Block a user