mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
use collections; use FQCN for all tasks
This commit is contained in:
@@ -10,17 +10,17 @@
|
||||
ansible_vars_dump_location: "/tmp/ansible-vars.yml"
|
||||
|
||||
tasks:
|
||||
- include_vars: ../../defaults/main.yml
|
||||
- ansible.builtin.include_vars: ../../defaults/main.yml
|
||||
|
||||
# workaround Molecule idempotence check
|
||||
# normal pattern of setting changed_when allows file to be written twice, which takes extra time
|
||||
- name: Check if vars have already been dumped
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ ansible_vars_dump_location }}"
|
||||
register: ansible_vars_stat_result
|
||||
|
||||
- name: Dump vars to file for inspection
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
content: |
|
||||
{{ vars | to_nice_yaml }}
|
||||
dest: "{{ ansible_vars_dump_location }}"
|
||||
|
||||
Reference in New Issue
Block a user