--- - name: cloud_init | Disable cloud-init network configuration ansible.builtin.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 - cloud_init - name: cloud_init | Remove the cloud-init package on Debian based systems ansible.builtin.apt: pkg: cloud-init state: absent when: - cloud_init_remove_pkg - ansible_distribution_file_variety == 'Debian' tags: - ovirt_cloud_init - ovirt - cloud_init - name: cloud_init | Remove the cloud-init package on EL/CentOS ansible.builtin.dnf: pkg: cloud-init state: absent when: - cloud_init_remove_pkg - ansible_distribution_file_variety == 'RedHat' tags: - ovirt_cloud_init - ovirt - cloud_init