Fix tofu preparation
This commit is contained in:
parent
7571e7d1c6
commit
037f111ce1
1 changed files with 5 additions and 0 deletions
|
|
@ -1,12 +1,17 @@
|
||||||
---
|
---
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run opentofu init
|
- name: Run opentofu init
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: tofu init
|
cmd: tofu init
|
||||||
|
chdir: "{{ playbook_dir }}/.."
|
||||||
check_mode: false
|
check_mode: false
|
||||||
tags: always
|
tags: always
|
||||||
|
- name: Refresh inventory with opentofu available
|
||||||
|
ansible.builtin.meta: refresh_inventory
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: Run all roles
|
- name: Run all roles
|
||||||
hosts: serguzim_net
|
hosts: serguzim_net
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue