Works on both debian and RH

This commit is contained in:
Andrea Dell'Amico 2019-01-23 13:11:25 +01:00
parent 4fb544e092
commit 2b058ee0b3
1 changed files with 7 additions and 2 deletions

View File

@ -7,9 +7,14 @@
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' ]