From 4de5695937e41b19d3b4348a413d6ca5de072079 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 30 Nov 2015 21:04:26 +0000 Subject: [PATCH] Have to move this so it runs on the right host(s) --- playbooks/transient_cloud_instance.yml | 14 ++++++++++++++ tasks/transient_cloud.yml | 10 ---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/playbooks/transient_cloud_instance.yml b/playbooks/transient_cloud_instance.yml index 0ffdfb25ac..6edbae0367 100644 --- a/playbooks/transient_cloud_instance.yml +++ b/playbooks/transient_cloud_instance.yml @@ -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 diff --git a/tasks/transient_cloud.yml b/tasks/transient_cloud.yml index cdc51b098a..ddde57018d 100644 --- a/tasks/transient_cloud.yml +++ b/tasks/transient_cloud.yml @@ -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