Created prepare playbook
This commit is contained in:
15
ansible/templates/netplan.yaml
Normal file
15
ansible/templates/netplan.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
# {{ansible_managed}}
|
||||
version: 2
|
||||
network:
|
||||
ethernets:
|
||||
{{ansible_default_ipv4.interface}}:
|
||||
dhcp4: false
|
||||
dhcp6: false
|
||||
gateway4: {{ ansible_default_ipv4.gateway }}
|
||||
addresses:
|
||||
- "{{ ansible_host }}/24"
|
||||
routes:
|
||||
{% for item in magic_routes %}
|
||||
- to: {{ item }}
|
||||
via: {{ magic_router_ip }}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user