Have to move this so it runs on the right host(s)
This commit is contained in:
parent
c3f5b21427
commit
4de5695937
2 changed files with 14 additions and 10 deletions
|
@ -45,6 +45,20 @@
|
|||
|
||||
- include: "{{ tasks }}/transient_cloud.yml"
|
||||
|
||||
- name: Install python2 and dnf as needed
|
||||
hosts: tmp_just_created
|
||||
gather_facts: False
|
||||
|
||||
- name: gather facts
|
||||
setup:
|
||||
always_run: True
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
|
||||
- name: install python2 and dnf stuff
|
||||
raw: dnf -y install python-dnf libselinux-python
|
||||
when: facts|failed
|
||||
|
||||
- name: provision instance
|
||||
hosts: tmp_just_created
|
||||
gather_facts: True
|
||||
|
|
|
@ -53,13 +53,3 @@
|
|||
# we have to wait some time. 10 sec is usually enough, but not always.
|
||||
- name: waiting for cloud-init
|
||||
pause: seconds=30
|
||||
|
||||
- name: gather facts
|
||||
setup:
|
||||
always_run: True
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
|
||||
- name: install python2 and dnf stuff
|
||||
raw: dnf -y install python-dnf libselinux-python
|
||||
when: facts|failed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue