From 9ac07ad1b4cb9a4fb3c050a0bdd10d1a5ae967fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Sat, 13 Jan 2018 11:20:07 +0000 Subject: [PATCH] Hubs: fix some permissions --- roles/hubs/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/hubs/tasks/main.yml b/roles/hubs/tasks/main.yml index 89fb2f415d..a06608abee 100644 --- a/roles/hubs/tasks/main.yml +++ b/roles/hubs/tasks/main.yml @@ -164,6 +164,20 @@ creates: "{{ hubs_code_dir }}/hubs/static/js/build/common.js" +- name: Fix permissions if necessary + file: + path: "{{ item }}" + state: directory + owner: "{{ main_user }}" + group: "{{ main_user }}" + recurse: yes + #setype: httpd_sys_content_rw_t + with_items: + - "{{ hubs_base_dir }}" + - "{{ hubs_conf_dir }}" + - "{{ hubs_var_dir }}" + + # Services - name: Disable the system-wide fedmsg-hub service: name=fedmsg-hub state=stopped enabled=no