-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcci_run.yml
28 lines (23 loc) · 904 Bytes
/
cci_run.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
28
---
- name: Automate CCI VM with Ansible
hosts: localhost
gather_facts: false
vars_files:
- vars/vault.yml
- vars/cci_automate.yml
pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3
- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"
tasks:
- name: Automate CCI VM using Ansible
include_tasks: cci_vm_automate.yml
with_items:
- { url: "{{ cci_os_cluster_url_first }}", id: "{{ cci_os_project_id_first }}", network: "{{ cci_os_network_first }}", flavor: "{{ cci_os_flavor_first }}" }
- { url: "{{ cci_os_cluster_url_second }}", id: "{{ cci_os_project_id_second }}", network: "{{ cci_os_network_second }}", flavor: "{{ cci_os_flavor_second }}" }
- name: Automate CCI VM using Ansible
include_tasks: cci_casc_edit.yml