From b6580e7f3ad77b0b65cf463ca7ff3acba9efb55c Mon Sep 17 00:00:00 2001 From: Arky Date: Sun, 1 Oct 2017 16:45:11 +0700 Subject: [PATCH] Using Ansible file module to fix warnings Using Ansible file modules instead of 'chmod' to recursively change iiab_base directory permissions. Fixes warning in #324 --- roles/kiwix/tasks/kiwix_install.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/kiwix/tasks/kiwix_install.yml b/roles/kiwix/tasks/kiwix_install.yml index b0d5ec5dc..355662934 100644 --- a/roles/kiwix/tasks/kiwix_install.yml +++ b/roles/kiwix/tasks/kiwix_install.yml @@ -72,7 +72,10 @@ # workaround because unarchive does not set ownership properly - name: Set kiwix ownership - command: "chown -R root:root {{ iiab_base }}" + file: path="{{ iiab_base }}" + owner=root + group=root + recurse=yes # workaround because kiwix-serve does not stay running - name: Make an entry in crontab to restart every hour