diff --git a/playbooks/tar-valon_config_deploy.yml b/playbooks/tar-valon_config_deploy.yml index ab390e0..4df97ad 100644 --- a/playbooks/tar-valon_config_deploy.yml +++ b/playbooks/tar-valon_config_deploy.yml @@ -27,12 +27,13 @@ | map(attribute='path') | map('relpath', template_base_path ~ '/' ~ inventory_hostname) | map('dirname') - | map('regex_replace', '^(.*)$', appdata_base_path ~ '/\1') + | map('regex_replace', '^(.*)$', hostvars[inventory_hostname]['appdata_base_path'] ~ '/\1') | unique | list }} changed_when: false + tasks: - name: Ensure destination directories exist (unique set) ansible.builtin.file: