Conditionalize this for fedora 22 which has only dnf, no yum.
This commit is contained in:
parent
0cac2fbb1b
commit
69d865e7ff
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue