From 7f9cbac257bee847a8501919d126de943d649806 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 13 May 2015 22:29:53 +0000 Subject: [PATCH] Drop growpart stuff, as openstack does it now and add conditional for dnf in f22+ --- playbooks/temp_cloud_instance.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/playbooks/temp_cloud_instance.yml b/playbooks/temp_cloud_instance.yml index b352ae9342..f503737e5c 100644 --- a/playbooks/temp_cloud_instance.yml +++ b/playbooks/temp_cloud_instance.yml @@ -34,17 +34,7 @@ tasks: - name: install cloud-utils yum: pkg=cloud-utils state=present - - - name: growpart /dev/vda1 partition (/) to full size - action: command growpart /dev/vda 1 - register: growpart - always_run: true - changed_when: "growpart.rc != 1" - failed_when: growpart.rc == 2 - - - name: resize the /dev/vda 1 fs - action: command xfs_growfs /dev/vda1 - when: growpart.rc == 0 + when: ansible_distribution_major_version < '22' - include: "{{ tasks }}/cloud_setup_basic.yml"