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