Conditionalize this for fedora 22 which has only dnf, no yum.

This commit is contained in:
Kevin Fenzi 2015-06-02 13:08:00 +00:00
parent 0cac2fbb1b
commit 69d865e7ff

View file

@ -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