mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Restore SELinux context after file moving
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
owner: "{{ ssh_user }}"
|
||||
group: "{{ ssh_user}}"
|
||||
mode: "755"
|
||||
register: static_files
|
||||
- name: Restore SELinux context
|
||||
ansible.builtin.command:
|
||||
cmd: restorecon -R -v /var/www/virtual/{{ ssh_user }}/html
|
||||
when: static_files.changed
|
||||
- name: Create service
|
||||
ansible.builtin.template:
|
||||
src: etc/services.d/pretix.ini.j2
|
||||
|
||||
Reference in New Issue
Block a user