Improve opentofu init

This commit is contained in:
Tobias Reisinger 2026-11-08 23:57:34 +01:00
commit 3074cf1428
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 1 additions and 6 deletions

View file

@ -1,6 +0,0 @@
- name: Prepare opentofu
hosts: localhost
gather_facts: false
tasks:
- name: Import tasks to prepare opentofu
ansible.builtin.import_tasks: tasks/prepare-opentofu.yml

View file

@ -4,6 +4,7 @@
chdir: "{{ playbook_dir }}/.." chdir: "{{ playbook_dir }}/.."
check_mode: false check_mode: false
tags: always tags: always
when: "(lookup('inventory_hostnames', 'serguzim_net') | length) == 0"
- name: Refresh inventory with opentofu available - name: Refresh inventory with opentofu available
ansible.builtin.meta: refresh_inventory ansible.builtin.meta: refresh_inventory
tags: always tags: always