From 78cd4bc1efc73848669d51e54066823b7237cf63 Mon Sep 17 00:00:00 2001 From: xbinois Date: Wed, 22 Apr 2020 14:40:57 +0200 Subject: [PATCH] Idempotence --- handlers/main.yml | 7 +++++++ tasks/main.yml | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 8d0e63e..888e280 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,3 +3,10 @@ command: gulp init args: chdir: "{{ omeka_content_dest }}" + +- name: Change Web directory owner + file: + path: "{{ omeka_content_dest }}" + owner: www-data + group: www-data + recurse: true diff --git a/tasks/main.yml b/tasks/main.yml index 6fcf837..e99475a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -41,10 +41,4 @@ group: www-data dest: "{{ omeka_content_dest }}/config/database.ini" mode: 0644 - -- name: Change Web directory owner - file: - path: "{{ omeka_content_dest }}" - owner: www-data - group: www-data - recurse: true + notify: Change Web directory owner