From b6c776093b64ea79d7b9c1637c49c5cf8bafbd71 Mon Sep 17 00:00:00 2001 From: Chaoyi Zha Date: Mon, 15 Jun 2015 16:26:53 +0000 Subject: [PATCH] Add mote and selinux tags to mote role --- roles/mote/tasks/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/roles/mote/tasks/main.yml b/roles/mote/tasks/main.yml index b5829399d5..9c1615e08b 100644 --- a/roles/mote/tasks/main.yml +++ b/roles/mote/tasks/main.yml @@ -7,6 +7,7 @@ - mote tags: - packages + - mote - name: replace the mote configuration file by the one with the normal user template: src={{ item.file }} @@ -20,6 +21,7 @@ - { file: name_mappings.json, location: /usr/share/mote } tags: - config + - mote notify: - restart apache @@ -29,6 +31,7 @@ - mote-updater tags: - services + - mote - name: apply selinux type to static files file: > @@ -36,29 +39,48 @@ setype=httpd_sys_content_t state=directory recurse=yes + tags: + - mote + - selinux + - name: apply selinux type to meetbot files file: > dest=/srv/web/meetbot/ setype=httpd_sys_content_t state=directory recurse=yes + tags: + - mote + - selinux - name: set sebooleans so apache can use memcached action: seboolean name=httpd_can_network_memcache state=true persistent=true + tags: + - mote + - selinux - name: apply selinux type to the wsgi file file: > dest=/usr/share/mote/mote.wsgi setype=httpd_sys_content_t + tags: + - mote + - selinux - name: apply selinux type to the name mappings file file: > dest=/usr/share/mote/name_mappings.json setype=httpd_sys_content_t + tags: + - mote + - selinux - name: apply selinux type to the category mappings file file: > dest=/usr/share/mote/category_mappings.json setype=httpd_sys_content_t + tags: + - mote + - selinux