Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KSZK
Ansible
Roles
Base
Commits
f85a3295
Verified
Commit
f85a3295
authored
Nov 19, 2021
by
rlacko
💬
Browse files
Do not fail when cloudinit config not exists
parent
549f282d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/netplan.yml
View file @
f85a3295
---
-
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment