Skip to content

Commit

Permalink
Fixing idempotency issue with client permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlesmithjr committed Dec 22, 2018
1 parent 6df1db7 commit 280c1b8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
file:
src: /etc/guacamole/guacamole.war
dest: "{{ '/var/lib/' + guacamole_tomcat + '/webapps/guacamole.war' }}"
owner: "{{ guacamole_tomcat }}"
group: "{{ guacamole_tomcat }}"
state: link
become: true
notify:
- "restart {{ guacamole_tomcat }}"
- restart guacd

# Moving here to ensure idempotency as it was failing when included above
- name: client | Setting Permissions On Tomcat Symlink For {{ 'guacamole-' + guacamole_version + '.war' }}
file:
path: /etc/guacamole/guacamole.war
owner: "{{ guacamole_tomcat }}"
group: "{{ guacamole_tomcat }}"
become: true

0 comments on commit 280c1b8

Please sign in to comment.