Have to move this so it runs on the right host(s)

This commit is contained in:
Kevin Fenzi 2015-11-30 21:04:26 +00:00
parent c3f5b21427
commit 4de5695937
2 changed files with 14 additions and 10 deletions

View file

@ -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

View file

@ -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