forked from ISTI-ansible-roles/ansible-roles
Manage the cloud-init package or configuration.
This commit is contained in:
parent
3f86df0baa
commit
d8318e0856
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
cloud_init_disable_netconfig: False
|
||||
cloud_init_remove_pkg: True
|
|
@ -0,0 +1 @@
|
|||
network: {config: disabled}
|
|
@ -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' ]
|
||||
|
Loading…
Reference in New Issue