ansible/roles/cloudinit/tasks/main.yml

22 lines
468 B
YAML
Raw Normal View History

2022-07-21 15:19:24 +02:00
---
- name: Remove cloudinit sudoers file
file:
path: "/etc/sudoers.d/90-cloud-init-users"
state: absent
2022-07-21 21:02:19 +02:00
- name: Remove cloudinit netplan
file:
path: "/etc/netplan/50-cloud-init.yaml"
state: absent
when: ansible_facts["lsb"]["id"] == "Ubuntu"
2022-07-21 15:19:24 +02:00
- name: Disable cloudinit
file:
path: "/etc/cloud/cloud-init.disabled"
owner: root
group: root
mode: "0644"
state: touch
modification_time: preserve
access_time: preserve