Manage the cloud-init package or configuration.

This commit is contained in:
Andrea Dell'Amico 2018-06-04 18:42:46 +02:00
parent 3f86df0baa
commit d8318e0856
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
---
cloud_init_disable_netconfig: False
cloud_init_remove_pkg: True

View File

@ -0,0 +1 @@
network: {config: disabled}

15
cloud-init/tasks/main.yml Normal file
View File

@ -0,0 +1,15 @@
---
- block:
- name: cloud-init should not mess with the network settings
copy: src=99-disable-network-config.cfg dest=/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg owner=root group=root mode=0644
when: cloud_init_disable_netconfig
tags: [ 'ovirt_cloud_init_net', 'ovirt' ]
- block:
- name: Remove the cloud-init package
apt: pkg=cloud-init state=absent
when: cloud_init_remove_pkg
tags: [ 'ovirt_cloud_init', 'ovirt' ]