From 34eaee73e440f9b1a43dd9623c242f971e6229cc Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 16 Nov 2015 19:52:33 +0000 Subject: [PATCH] Move this over to setup where we have facts. --- tasks/cloud_setup_basic.yml | 8 ++++++++ tasks/persistent_cloud_new.yml | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/cloud_setup_basic.yml b/tasks/cloud_setup_basic.yml index 1a0c7152a6..7f1834c6ee 100644 --- a/tasks/cloud_setup_basic.yml +++ b/tasks/cloud_setup_basic.yml @@ -1,4 +1,12 @@ --- +# +# The Fedora 23 cloud image doesn't have python2 and dnf bindings for that. +# Install them with the raw module so everything else works. +# + +- name: prep fedora 23 cloud image for ansible + raw: dnf -y install python-dnf libselinux-python + when: ansible_distribution_major_version|int > 22 and host_is_up|failed - name: ntp pkgs yum: state=present pkg={{ item }} diff --git a/tasks/persistent_cloud_new.yml b/tasks/persistent_cloud_new.yml index 7c10eeab56..184a93a1bb 100644 --- a/tasks/persistent_cloud_new.yml +++ b/tasks/persistent_cloud_new.yml @@ -75,11 +75,3 @@ # # poll: 5 # ignore_errors: True # -# -# The Fedora 23 cloud image doesn't have python2 and dnf bindings for that. -# Install them with the raw module so everything else works. -# - -- name: prep fedora 23 cloud image for ansible - raw: dnf -y install python-dnf libselinux-python - when: ansible_distribution_major_version|int > 22 and host_is_up|failed