-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathopenstack_vm_remove_passwordstore.yml
27 lines (23 loc) · 1.19 KB
/
openstack_vm_remove_passwordstore.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# Variables:
# - "vm_name": "n311-test"
- name: "Build OpenStack authentication for v3password"
ansible.builtin.import_playbook: "../openstack/openstack_auth_passstore_v3password.yml"
- name: "Validate passwordstore"
ansible.builtin.import_playbook: "../passstore/passstore_controller_check.yml"
- name: "Delete Server on Openstack"
ansible.builtin.import_playbook: "openstack_vm_remove.yml"
# vars:
# openstack_auth:
# openstack_project_name: "{{ query('passwordstore', 'openstack/host/project_name')[0] }}"
# openstack_console_user: "{{ query('passwordstore', 'openstack/host/console_user')[0] }}"
# openstack_console_password: "{{ query('passwordstore', 'openstack/host/console_pw')[0] }}"
# openstack_user_domain: "{{ query('passwordstore', 'openstack/host/console_domain')[0] }}"
# openstack_project_domain: "{{ query('passwordstore', 'openstack/host/os_domain')[0] }}"
# openstack_os_auth_url: "{{ query('passwordstore', 'openstack/host/os_auth_url')[0] }}"
- name: "Cleanup passwordstore inventory"
import_playbook: "../passstore/passstore_controller_inventory_remove.yml"
vars:
pass_provider: "openstack"
vm_name: "{{ vm_name }}"
...