From b0d3e37c6bd87c3ac93da11de6edee5e4db50668 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 13 Mar 2019 08:15:35 +0100 Subject: [PATCH] #15 Fix the bug where the cron script was confusing file permissions --- tasks/users/gitcomposer.yml | 4 +--- tasks/users/gitscript.yml | 10 +++++----- tasks/users/gitscript_cron.yml | 4 +--- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/tasks/users/gitcomposer.yml b/tasks/users/gitcomposer.yml index 38c0ff7..a52dbfe 100644 --- a/tasks/users/gitcomposer.yml +++ b/tasks/users/gitcomposer.yml @@ -28,6 +28,4 @@ - name: "Extended File Modes and Ownership for Repository" command: setfacl -Rm u:root:rwX,g:{{ drupal.src.name }}:rwX,o::rX {{ webRoot }} - tags: - - 'SetPermissions' - - 'cron' + tags: 'SetPermissions' diff --git a/tasks/users/gitscript.yml b/tasks/users/gitscript.yml index a112590..ef00a78 100644 --- a/tasks/users/gitscript.yml +++ b/tasks/users/gitscript.yml @@ -28,9 +28,9 @@ - name: "Extended File Modes and Ownership for Repository" command: setfacl -Rm u:root:rwX,g:{{ drupal.src.name }}:rwX,o::rX {{ webRoot }}{{ drupal.src.git.target }} - - include_tasks: gitscript_cron.yml - when: drupal.src.cron is defined + tags: 'SetPermissions' + +- include_tasks: gitscript_cron.yml + when: drupal.src.cron is defined + tags: 'cron' - tags: - - 'SetPermissions' - - 'cron' diff --git a/tasks/users/gitscript_cron.yml b/tasks/users/gitscript_cron.yml index 72e001b..1872bdb 100644 --- a/tasks/users/gitscript_cron.yml +++ b/tasks/users/gitscript_cron.yml @@ -26,6 +26,4 @@ user='root' disabled='{{ crons_disabled|default(false) }}' - tags: - - 'SetPermissions' - - 'cron' + tags: 'SetPermissions' -- GitLab