Drop growpart stuff, as openstack does it now and add conditional for dnf in f22+

This commit is contained in:
Kevin Fenzi 2015-05-13 22:29:53 +00:00
parent 8772048c89
commit 7f9cbac257

View file

@ -34,17 +34,7 @@
tasks: tasks:
- name: install cloud-utils - name: install cloud-utils
yum: pkg=cloud-utils state=present yum: pkg=cloud-utils state=present
when: ansible_distribution_major_version < '22'
- 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
- include: "{{ tasks }}/cloud_setup_basic.yml" - include: "{{ tasks }}/cloud_setup_basic.yml"