Skip to content

Commit

Permalink
use copy module
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli committed Oct 17, 2023
1 parent 1975185 commit dda40f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tasks/setup_static_dirs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
path: "{{ galaxy_themes_static_path }}/static-{{ subdomain.name }}"

- name: Move all contents from static to parent directory
ansible.builtin.command: cp -r {{ galaxy_themes_static_dir }}/. {{ galaxy_themes_static_path }}/static-{{ \
subdomain.name }}
ansible.builtin.copy:
src: "{{ galaxy_themes_static_dir }}"
dest: "{{ galaxy_themes_static_path }}/static-{{ \
subdomain.name }}"
owner: "{{ __galaxy_privsep_user_name }}"
group: "{{ __galaxy_privsep_user_group }}"
directory_mode: true
changed_when: false

- name: Remove static dirs
Expand Down

0 comments on commit dda40f2

Please sign in to comment.