mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Set the correct selinux context to allow httpd to clone git repos
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
@@ -179,6 +179,12 @@
|
||||
- packages/web
|
||||
- selinux
|
||||
|
||||
- name: /var/cache/fedoracommunity/git.fedoraproject.org file contexts
|
||||
sefcontext:
|
||||
target: '/var/cache/fedoracommunity/git.fedoraproject.org(/.*)?'
|
||||
setype: httpd_sys_rw_content_t
|
||||
state: present
|
||||
|
||||
- name: Build the database the first time. This takes a while
|
||||
command: /usr/bin/fcomm-index-packages --index-db-dest=/var/cache/fedoracommunity/packages/xapian --icons-dest /var/cache/fedoracommunity/packages/icons --mdapi-url=https://apps{{env_suffix}}.fedoraproject.org/mdapi --icons-url=https://dl.fedoraproject.org/pub/alt/screenshots --tagger-url=https://apps{{env_suffix}}.fedoraproject.org/tagger creates=/var/cache/fedoracommunity/packages/xapian/search/termlist.glass
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user