Skip to content

Commit

Permalink
Merge pull request #14 from O1ahmad/ahmad/default_config_fixes
Browse files Browse the repository at this point in the history
fix: store specified configs in destination path without workdir as root
  • Loading branch information
O1ahmad authored Jun 25, 2024
2 parents 09716f3 + 4407fa7 commit 830ffd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/common/storage-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
group: "{{ ansible_user }}"
mode: "0755"

- name: Ensure existence of operations/work dir
- name: Ensure existence of config dir
become: true
ansible.builtin.file:
path: "{{ work_dir }}{{ item.value.destinationPath | dirname }}"
path: "{{ item.value.destinationPath | dirname }}"
state: directory
mode: "0755"
with_dict: "{{ config }}"

- name: Generate local rendering of service config files
ansible.builtin.copy:
content: "{{ item.value.data | default(omit) }}"
dest: "{{ work_dir }}/{{ item.value.destinationPath }}"
dest: "{{ item.value.destinationPath }}"
mode: "{{ item.value.mode | default(644) }}"
src: "{{ item.value.sourcePath | default(omit) }}"
with_dict: "{{ config }}"

0 comments on commit 830ffd1

Please sign in to comment.