cgit/make_pkgs_list: Ensure the repo list file exists
The semanage call further down the palybook will fail if the file isn't there already.
This commit is contained in:
parent
c066e21c3a
commit
12dea5d384
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@
|
||||||
user=root
|
user=root
|
||||||
job="/usr/local/bin/lock-wrapper make-cgit-pkgs-list '/usr/local/bin/make-cgit-pkgs-list.sh | /usr/local/bin/nag-once fassync 1d 2>&1'"
|
job="/usr/local/bin/lock-wrapper make-cgit-pkgs-list '/usr/local/bin/make-cgit-pkgs-list.sh | /usr/local/bin/nag-once fassync 1d 2>&1'"
|
||||||
|
|
||||||
|
- name: ensure the repo list file exists
|
||||||
|
file: path=/srv/git/pkgs-git-repos-list state=touch owner=apache group=apache mode=0644
|
||||||
|
|
||||||
- name: check the selinux context of the repo list
|
- name: check the selinux context of the repo list
|
||||||
command: matchpathcon /srv/git/pkgs-git-repos-list
|
command: matchpathcon /srv/git/pkgs-git-repos-list
|
||||||
register: gitlistcontext
|
register: gitlistcontext
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue