git selinux fixes, added pihole container
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---
|
||||
- import_tasks: user.yml
|
||||
- import_tasks: systemd.yml
|
||||
- import_tasks: selinux.yml
|
||||
|
||||
14
ansible/roles/git/tasks/selinux.yml
Normal file
14
ansible/roles/git/tasks/selinux.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: configure selinux git directories
|
||||
become: true
|
||||
community.general.sefcontext:
|
||||
target: "{{ item.target }}(/.*)?"
|
||||
setype: "{{ item.setype }}"
|
||||
state: present
|
||||
notify: restorecon git
|
||||
loop:
|
||||
- { target: "{{ git_home }}", setype: "user_home_dir_t" }
|
||||
- { target: "{{ git_home }}/.ssh", setype: "ssh_home_t" }
|
||||
tags:
|
||||
- git
|
||||
- selinux
|
||||
Reference in New Issue
Block a user