From 0abc502f00cf8f6fbc70139bda866b1feb1dc714 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Fri, 13 Jul 2018 22:48:53 +0000 Subject: [PATCH] okay, as its own play maybe? Signed-off-by: Rick Elrod --- playbooks/transient_newcloud_instance.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/transient_newcloud_instance.yml b/playbooks/transient_newcloud_instance.yml index 50b118da4d..e272e149f0 100644 --- a/playbooks/transient_newcloud_instance.yml +++ b/playbooks/transient_newcloud_instance.yml @@ -45,15 +45,20 @@ - import_tasks: "{{ tasks_path }}/transient_newcloud.yml" +- name: Install Pythonic stuff. + hosts: tmp_just_created + gather_facts: True + environment: + ANSIBLE_HOST_KEY_CHECKING: False + + tasks: - name: gather facts - delegate_to: "{{ tmp_just_created }}" setup: check_mode: no ignore_errors: True register: facts - name: install python2 and dnf stuff - delegate_to: "{{ tmp_just_created }}" raw: dnf -y install python-dnf libselinux-python when: facts is failed