From 69d865e7ff39e680ad58fe4120040bd7f02b41cf Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 2 Jun 2015 13:08:00 +0000 Subject: [PATCH] Conditionalize this for fedora 22 which has only dnf, no yum. --- tasks/growroot_cloud.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/growroot_cloud.yml b/tasks/growroot_cloud.yml index 4831c2cd6a..0556af3ecd 100644 --- a/tasks/growroot_cloud.yml +++ b/tasks/growroot_cloud.yml @@ -5,9 +5,16 @@ - config - name: install cloud-utils - action: yum name=cloud-utils state=present + yum: name=cloud-utils state=present tags: - packages + when: ansible_distribution_major_version|int < 22 and ansible_cmdline.ostree is not defined + +- name: install cloud-utils + dnf: name=cloud-utils state=present + tags: + - packages + when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined - name: growpart the second partition (/) to full size command: growpart /dev/vda 2