Verified Commit f85a3295 authored by rlacko's avatar rlacko 💬
Browse files

Do not fail when cloudinit config not exists

parent 549f282d
---
- name: Check if cloud-init config folder exists
stat:
path: /etc/cloud/cloud.cfg.d/
register: cloudinit_config_folder
- name: Disable cloud init networking
template:
src: base-role/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg.j2
dest: /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
mode: 0644
when: cloudinit_config_folder.stat.exists
- name: Add netplan network config
template:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment