mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Only recreate static files if directory does not exist yet
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
- name: Prepare static files
|
||||
ansible.builtin.command:
|
||||
cmd: "{{ python_executable }} -m pretix rebuild"
|
||||
creates: /home/{{ ssh_user }}/.local/lib/{{ python_executable }}/site-packages/pretix/static.dist
|
||||
register: static_files
|
||||
- name: Move static files to Apache
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
@@ -35,7 +37,7 @@
|
||||
owner: "{{ ssh_user }}"
|
||||
group: "{{ ssh_user}}"
|
||||
mode: "755"
|
||||
register: static_files
|
||||
when: static_files.changed
|
||||
- name: Restore SELinux context
|
||||
ansible.builtin.command:
|
||||
cmd: restorecon -R -v /var/www/virtual/{{ ssh_user }}/html
|
||||
|
||||
Reference in New Issue
Block a user