From 280c1b81ceda1333d3bcb10a58de684eda75ba8c Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Sat, 22 Dec 2018 00:48:29 -0500 Subject: [PATCH] Fixing idempotency issue with client permissions --- tasks/client.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/client.yml b/tasks/client.yml index ecd0dda..f9631ad 100644 --- a/tasks/client.yml +++ b/tasks/client.yml @@ -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