From dc95ba9fb4105dcba712fbcece578d2fe08d7ef1 Mon Sep 17 00:00:00 2001 From: saibotk Date: Fri, 14 Aug 2020 05:20:15 +0200 Subject: [PATCH] static_websites: Remove SELinux context from install directory This patch removes installing an SELinux context for the install directory, which only holds the docker-compose.yml and explicitly setting the seuser / setype. This is now consistent with all other docker-compose.yml deployments. --- roles/static_websites/tasks/main.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/roles/static_websites/tasks/main.yml b/roles/static_websites/tasks/main.yml index 1d51e60..2f2f6c3 100644 --- a/roles/static_websites/tasks/main.yml +++ b/roles/static_websites/tasks/main.yml @@ -17,22 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -- name: Update default SELinux contexts - sefcontext: - target: '{{ item }}(/.*)?' - seuser: "system_u" - setype: "var_t" - state: present - with_items: - - "{{ static_websites_install_location }}" - become: true - - name: Create directory file: path: "{{ item }}" state: directory - seuser: "system_u" - setype: "var_t" with_items: - "{{ static_websites_install_location }}" become: true