-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdelete.yaml
More file actions
21 lines (19 loc) · 825 Bytes
/
delete.yaml
File metadata and controls
21 lines (19 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
# Run a script using a executable in a system path
- name: Delete Openstack instances for Kubernetes HA setup
script:
cmd: >
openstack_instance.py delete
--os-username {{ os_username }} --os-password {{ os_password }}
--os-base-url {{ os_base_url }} --os-project-domain-name {{ os_project_domain_name }}
--os-user-domain-name {{ os_user_domain_name }} --os-project-name {{ os_project_name }}
{% for instance in k8s_ctl_instances + k8s_wrk_instances + [k8s_lb_instance, k8s_nfs_instance] %}{{ instance }} {% endfor %}
args:
executable: python3
register: cmd_output
- name: Mark python uninstalled
file:
path: "{{ lookup('env', 'INVENTORY_DIR_PATH') }}/install_python.ignore"
state: absent
#- name: Print Output of command
# debug: msg="{{ cmd_output.stdout }}"