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
2f7ab4ff
Verified
Commit
2f7ab4ff
authored
Oct 17, 2021
by
rlacko
💬
Browse files
Allow customization of netplan config
parent
99232c21
Changes
2
Hide whitespace changes
Inline
Side-by-side
defaults/main.yml
View file @
2f7ab4ff
...
...
@@ -2,8 +2,8 @@
timezone
:
Europe/Budapest
na
:
"
https://git.sch.bme.hu/kszk/sysadmin/kubernetes/base-ansible-role"
hostname
:
"
{{
inventory_hostname
}}"
# motd_text: KSZK Host
netplan_config_file
:
01-netcfg.yaml.j2
motd_text
:
KSZK Host
# ssh:
# port: 10022
# pubkeyAuthentication: "yes"
...
...
tasks/netplan.yaml
View file @
2f7ab4ff
...
...
@@ -7,8 +7,8 @@
-
name
:
Add netplan network config
template
:
src
:
etc/netplan/
01-netcfg.yaml
.j2
dest
:
/etc/netplan/
01-netcfg.yaml
src
:
etc/netplan/
{{ netplan_config_file }}
.j2
dest
:
/etc/netplan/
{{ netplan_config_file }}
mode
:
0644
register
:
netplan_config
...
...
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