Works on both debian and RH
This commit is contained in:
parent
4fb544e092
commit
2b058ee0b3
|
@ -7,8 +7,13 @@
|
||||||
tags: [ 'ovirt_cloud_init_net', 'ovirt' ]
|
tags: [ 'ovirt_cloud_init_net', 'ovirt' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Remove the cloud-init package
|
- name: Remove the cloud-init package ond Debian based systems
|
||||||
apt: pkg=cloud-init state=absent
|
apt: pkg=cloud-init state=absent
|
||||||
|
when: ansible_distribution_file_variety == 'Debian'
|
||||||
|
|
||||||
|
- name: Remove the cloud-init package on CentOS
|
||||||
|
yum: pkg=cloud-init state=absent
|
||||||
|
when: ansible_distribution_file_variety == 'RedHat'
|
||||||
|
|
||||||
when: cloud_init_remove_pkg
|
when: cloud_init_remove_pkg
|
||||||
tags: [ 'ovirt_cloud_init', 'ovirt' ]
|
tags: [ 'ovirt_cloud_init', 'ovirt' ]
|
||||||
|
|
Loading…
Reference in New Issue