Skip to content

Commit

Permalink
#9: Add cache clear notifications to tasks already calling the restar…
Browse files Browse the repository at this point in the history
…t dock handler
  • Loading branch information
fubarhouse committed Oct 24, 2018
1 parent 95b38a6 commit 8dd49a7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
when:
- dockitems_remove_all|bool == false
- (item.item ~ " was found in persistent-apps") in item.stdout
notify: restart dock
notify:
- clear cache
- restart dock

- name: Dockutil | Get information on configured setup
shell: "{{ dockutil_install_path }} --find '{{ item.name }}'"
Expand All @@ -50,7 +52,9 @@
loop_control:
label: "{{item.item}}"
when: (item.item.name ~ " was not found in") in item.stdout
notify: restart dock
notify:
- clear cache
- restart dock

- name: Dockutil | Get information on current setup
shell: "{{ dockutil_install_path }} --find '{{ item.name }}'"
Expand All @@ -68,4 +72,6 @@
when:
- (item.item.name ~ " was found in persistent-apps at slot " ~ item.item.pos ~ " in") not in item.stdout
- (item.item.name ~ " was not found") not in item.stdout
notify: restart dock
notify:
- clear cache
- restart dock

0 comments on commit 8dd49a7

Please sign in to comment.