-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_all.yml
52 lines (46 loc) · 1.02 KB
/
install_all.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- name: Store known hosts
hosts: controller
gather_facts: false
roles:
- common/ssh_key_gen
- name: Prepare installation
hosts: controller
gather_facts: false
become: yes
roles:
- common/prepare
- name: Run packstack
hosts: controller
gather_facts: false
become: yes
roles:
- run_packstack
- name: Configure cloud module
hosts: controller
gather_facts: false
become: yes
roles:
- gen_cloud_file
- name: Configure Openstack
hosts: controller
gather_facts: false
become: yes
roles:
- configure_packstack
- name: Apply settings
hosts: controller
gather_facts: false
tasks:
- name: Restart Box
reboot:
msg: "Reboot initiated by Ansible"
connect_timeout: 10
reboot_timeout: 600
pre_reboot_delay: 0
post_reboot_delay: 20
test_command: whoami
become: true
- name: Waiting for server to come back
wait_for: host="{{ ansible_host }}" port=2222 state=started delay=10 timeout=60
delegate_to: localhost