fix: Restore SELinux context after file moving

This commit is contained in:
2025-10-20 22:02:13 +02:00
parent c86969177b
commit b24ae4c8c9
+5
View File
@@ -35,6 +35,11 @@
owner: "{{ ssh_user }}" owner: "{{ ssh_user }}"
group: "{{ ssh_user}}" group: "{{ ssh_user}}"
mode: "755" 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 - name: Create service
ansible.builtin.template: ansible.builtin.template:
src: etc/services.d/pretix.ini.j2 src: etc/services.d/pretix.ini.j2