batcave: adjust path to be correct for /srv/ansible.git

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-03 14:09:51 -07:00
parent ff0336acfe
commit 8f795f5867

View file

@ -387,7 +387,7 @@
#
- name: check the selinux context of ansible
command: matchpathcon /srv/ansible
command: matchpathcon /srv/ansible.git
register: webdir
check_mode: no
changed_when: "1 != 1"
@ -399,7 +399,7 @@
- httpd/website
- name: /git/ansible file contexts
command: semanage fcontext -a -t git_content_t "/srv/ansible(/.*)?"
command: semanage fcontext -a -t git_content_t "/srv/ansible.git(/.*)?"
when: webdir.stdout.find('git_content_t') == -1
tags:
- config