Add tofu init before playbook

This commit is contained in:
Tobias Reisinger 2026-11-02 21:46:01 +01:00
commit 5560912b43
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

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