infrastructure/playbooks/tasks/prepare-opentofu.yml

10 lines
321 B
YAML

- name: Run opentofu init
ansible.builtin.command:
cmd: tofu init
chdir: "{{ playbook_dir }}/.."
check_mode: false
tags: always
when: "(lookup('inventory_hostnames', 'serguzim_net') | length) == 0"
- name: Refresh inventory with opentofu available
ansible.builtin.meta: refresh_inventory
tags: always