Add tofu init before playbook
This commit is contained in:
parent
866a168034
commit
5560912b43
1 changed files with 14 additions and 0 deletions
|
|
@ -1,4 +1,18 @@
|
|||
---
|
||||
- name: Prepare
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Run opentofu init
|
||||
ansible.builtin.command:
|
||||
cmd: tofu init
|
||||
chdir: "{{ playbook_dir }}/.."
|
||||
check_mode: false
|
||||
tags: always
|
||||
- name: Refresh inventory with opentofu available
|
||||
ansible.builtin.meta: refresh_inventory
|
||||
tags: always
|
||||
|
||||
- name: Run all roles
|
||||
hosts: serguzim_net
|
||||
vars:
|
||||
|
|
|
|||
Loading…
Reference in a new issue