Make this omnipotent. Matchpathcon does not do wildcards

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-02-11 20:08:28 +00:00
parent 4702bb99cb
commit 16e88a8cb1

View file

@ -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