Do not run commands unconditionally.
This commit is contained in:
parent
3b5c78e1a3
commit
1f6d262ad4
2 changed files with 15 additions and 10 deletions
|
@ -1,10 +1,18 @@
|
|||
- name: run update-grub
|
||||
- name: Run update-grub
|
||||
command: update-grub
|
||||
listen: update grub
|
||||
|
||||
- name: enable tmp.mount
|
||||
- name: Enable tmp.mount
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
name: tmp.mount
|
||||
enabled: yes
|
||||
listen: enable tmp.mount
|
||||
|
||||
- name: Run update-desktop-database
|
||||
command: update-desktop-database "{ item }"
|
||||
loop:
|
||||
- /usr/local/share/applications
|
||||
- /usr/local/share/desktop-directories
|
||||
- /etc/xdg/menus/applications-merged
|
||||
listen: update-desktop-database
|
||||
|
|
|
@ -137,26 +137,23 @@
|
|||
loop:
|
||||
- /usr/local/share/applications
|
||||
- /usr/local/share/desktop-directories
|
||||
notify: update-desktop-database
|
||||
|
||||
- name: Copy fvs.directory
|
||||
ansible.builtin.copy:
|
||||
src: fvs.directory
|
||||
dest: /usr/local/share/desktop-directories/
|
||||
notify: update-desktop-database
|
||||
|
||||
- name: Copy fvs.menu
|
||||
ansible.builtin.copy:
|
||||
src: fvs.menu
|
||||
dest: /etc/xdg/menus/applications-merged/
|
||||
notify: update-desktop-database
|
||||
|
||||
- name: Run update-desktop-database
|
||||
command: update-desktop-database "{ item }"
|
||||
loop:
|
||||
- /usr/local/share/applications
|
||||
- /usr/local/share/desktop-directories
|
||||
- /etc/xdg/menus/applications-merged
|
||||
|
||||
- name: Run update-desktop-database
|
||||
- name: Run sync-vm.sh
|
||||
command: sync-vm.sh -t
|
||||
## FIXME: do not run every time
|
||||
|
||||
################# from kiosk.yml ##################
|
||||
- name: grub timeout
|
||||
|
|
Loading…
Add table
Reference in a new issue