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
|
command: update-grub
|
||||||
listen: update grub
|
listen: update grub
|
||||||
|
|
||||||
- name: enable tmp.mount
|
- name: Enable tmp.mount
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
name: tmp.mount
|
name: tmp.mount
|
||||||
enabled: yes
|
enabled: yes
|
||||||
listen: enable tmp.mount
|
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:
|
loop:
|
||||||
- /usr/local/share/applications
|
- /usr/local/share/applications
|
||||||
- /usr/local/share/desktop-directories
|
- /usr/local/share/desktop-directories
|
||||||
|
notify: update-desktop-database
|
||||||
|
|
||||||
- name: Copy fvs.directory
|
- name: Copy fvs.directory
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: fvs.directory
|
src: fvs.directory
|
||||||
dest: /usr/local/share/desktop-directories/
|
dest: /usr/local/share/desktop-directories/
|
||||||
|
notify: update-desktop-database
|
||||||
|
|
||||||
- name: Copy fvs.menu
|
- name: Copy fvs.menu
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: fvs.menu
|
src: fvs.menu
|
||||||
dest: /etc/xdg/menus/applications-merged/
|
dest: /etc/xdg/menus/applications-merged/
|
||||||
|
notify: update-desktop-database
|
||||||
|
|
||||||
- name: Run update-desktop-database
|
- name: Run sync-vm.sh
|
||||||
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
|
|
||||||
command: sync-vm.sh -t
|
command: sync-vm.sh -t
|
||||||
|
## FIXME: do not run every time
|
||||||
|
|
||||||
################# from kiosk.yml ##################
|
################# from kiosk.yml ##################
|
||||||
- name: grub timeout
|
- name: grub timeout
|
||||||
|
|
Loading…
Add table
Reference in a new issue