Skip to content

Commit

Permalink
Ensure config dirs exists before creating files (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
dincho authored Dec 19, 2023
1 parent 2224344 commit b57a482
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@
notify: "restart aeternity daemon"
tags: [config, peer_keys]

- name: Make sure configuration files paths exists
file:
path: "{{ project_root }}/{{ item.value | dirname }}"
state: directory
mode: 0700
loop: "{{ files | dict2items }}"
when:
- files is defined
- vault_config_key is defined
- vault_config_key != ""
notify: "restart aeternity daemon"
tags: [config]

- name: Update configuration files
copy:
content: "{{ lookup('hashi_vault', 'secret=secret/aenode/config/{{ vault_config_key }}:{{ item.key }}') }}"
Expand Down

0 comments on commit b57a482

Please sign in to comment.