diff options
Diffstat (limited to 'deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks')
-rw-r--r-- | deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/destroy_host.yml | 5 | ||||
-rw-r--r-- | deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/destroy_host.yml b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/destroy_host.yml new file mode 100644 index 000000000..e9cedce7a --- /dev/null +++ b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/destroy_host.yml @@ -0,0 +1,5 @@ +--- +- name: Destroy host + os_server: + name: "{{ host.name }}" + state: absent diff --git a/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml new file mode 100644 index 000000000..5ce130d44 --- /dev/null +++ b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- include: destroy_host.yml host={{ item }} + loop: "{{ hosts }}" |