From 16e88a8cb1e791fb940328c08a30bde5501c30a6 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 11 Feb 2016 20:08:28 +0000 Subject: [PATCH] Make this omnipotent. Matchpathcon does not do wildcards Signed-off-by: Patrick Uiterwijk --- roles/people/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/people/tasks/main.yml b/roles/people/tasks/main.yml index 862a44ae44..109819ef23 100644 --- a/roles/people/tasks/main.yml +++ b/roles/people/tasks/main.yml @@ -49,7 +49,7 @@ - people - name: check the selinux context of the users home git dirs - command: matchpathcon "/home/fedora/(/.*)/public_git(/.*)?" + command: matchpathcon "/home/fedora/someone/public_git" register: gitcontext always_run: yes changed_when: false @@ -65,7 +65,7 @@ - selinux - name: check the selinux context of the project dirs - command: matchpathcon "/project(.*)?" + command: matchpathcon "/project" register: gitcontext always_run: yes changed_when: false @@ -82,7 +82,7 @@ - name: check the selinux context of the web dir - command: matchpathcon "/srv/web(/.*)?" + command: matchpathcon "/srv/web" register: gitcontext always_run: yes changed_when: false @@ -98,7 +98,7 @@ - selinux - name: check the selinux context of the people dir - command: matchpathcon "/srv/people(/.*)?" + command: matchpathcon "/srv/people" register: gitcontext always_run: yes changed_when: false @@ -114,7 +114,7 @@ - selinux - name: check the selinux context of the planet dir - command: matchpathcon "/srv/planet(/.*)?" + command: matchpathcon "/srv/planet" register: gitcontext always_run: yes changed_when: false