- name: Destroy terraform infrastructure. hosts: localhost gather_facts: false vars_files: - ../vault.yml tasks: - name: Destroy Terraform. community.general.terraform: project_path: "../terraform" state: "absent" init_reconfigure: true force_init: true backend_config: "{{ terraform.backend }}" variables: "{{ terraform.variables }}" complex_vars: true