Fix some ansible-lint problems
This commit is contained in:
parent
9a82dd6ae9
commit
e8e3e4006a
2 changed files with 347 additions and 7 deletions
|
|
@ -28,8 +28,8 @@
|
|||
no_log: true
|
||||
|
||||
- name: Load the opentofu output
|
||||
set_fact:
|
||||
opentofu: "{{ opentofu | default({}) | combine({ item.key: item.value.value }) }}"
|
||||
ansible.builtin.set_fact:
|
||||
opentofu: "{{ opentofu | default({}) | combine({item.key: item.value.value}) }}"
|
||||
loop: "{{ lookup('cloud.terraform.tf_output', binary_path='bin/tofu') | dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@
|
|||
cmd: tofu init
|
||||
chdir: "{{ playbook_dir }}/.."
|
||||
check_mode: false
|
||||
changed_when: true
|
||||
tags: always
|
||||
when: "(lookup('inventory_hostnames', 'serguzim_net') | length) == 0"
|
||||
|
||||
- name: Refresh inventory with opentofu available
|
||||
ansible.builtin.meta: refresh_inventory
|
||||
tags: always
|
||||
|
|
|
|||
Loading…
Reference in a new issue