File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ - import_playbook : wait-control-host.yml
3
+ tags : wait
2
4
- import_playbook : grow-control-host.yml
3
5
tags : lvm
4
6
- import_playbook : deploy-openstack-config.yml
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Grow Control Host
3
3
hosts : ansible_control
4
- gather_facts : false
4
+ gather_facts : true
5
5
vars_files :
6
6
- vars/defaults.yml
7
7
tasks :
8
- - name : Ensure hosts are reachable
9
- ansible.builtin.wait_for_connection :
10
-
11
- - name : Gather facts
12
- setup :
13
-
14
8
- name : Check LVM status
15
9
shell :
16
10
cmd : vgdisplay | grep -q lvm2
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Wait for Control Host to be reachable
3
+ hosts : ansible_control
4
+ gather_facts : false
5
+ vars_files :
6
+ - vars/defaults.yml
7
+ tasks :
8
+ - name : Ensure hosts are reachable
9
+ ansible.builtin.wait_for_connection :
10
+
11
+ # The cloud-final.service unit can run apt update, which acquires the dpkg
12
+ # lock and prevents other tasks from acquiring it. Wait for it to finish.
13
+ - name : Wait for cloud init to finish
14
+ community.general.cloud_init_data_facts :
15
+ filter : status
16
+ register : cloud_init_result
17
+ until :
18
+ - cloud_init_result.cloud_init_data_facts.status.v1.stage is defined
19
+ - not cloud_init_result.cloud_init_data_facts.status.v1.stage
20
+ retries : 72
21
+ delay : 5
You can’t perform that action at this time.
0 commit comments