git selinux fixes, added pihole container

This commit is contained in:
Bastian de Byl
2022-05-02 19:40:38 -04:00
parent f7141f53d5
commit 255bc9cb4b
13 changed files with 112 additions and 60 deletions

View File

@@ -6,3 +6,12 @@
state: started
enabled: true
daemon_reload: true
tags: git
- name: restorecon git
become: true
ansible.builtin.command: |
restorecon -Frv {{ git_home }}
tags:
- git
- selinux

View File

@@ -1,3 +1,4 @@
---
- import_tasks: user.yml
- import_tasks: systemd.yml
- import_tasks: selinux.yml

View 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