Fix tofu preparation

This commit is contained in:
Tobias Reisinger 2026-11-04 00:09:21 +01:00
commit 037f111ce1
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -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