Skip to content

Commit 547e975

Browse files
committed
Ensure that the step1 cleanup tasks don't fail if server shutoff
1 parent 3836689 commit 547e975

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

installer/step1-provision-undercloud-server.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
---
22
- hosts: director
3+
gather_facts: false
34
tasks:
4-
- ping:
5-
register: connect_test
5+
- name: Check connection to director
6+
wait_for_connection:
7+
timeout: 10
68
ignore_errors: true
9+
register: connect_test
710

811
- name: Pre-reinstall cleanup tasks
912
block:
13+
- name: Gather Facts
14+
setup:
15+
1016
- name: Unregister system from RH if its online still
1117
redhat_subscription:
1218
state: absent
@@ -31,6 +37,7 @@
3137
when: connect_test is not failed
3238

3339
- hosts: director
40+
gather_facts: false
3441
tasks:
3542
- name: Trigger cobbler to reinstall the server
3643
shell: >

0 commit comments

Comments
 (0)