Created prepare playbook

This commit is contained in:
2021-11-08 03:32:56 +01:00
parent 04fbb0c3e3
commit 2d8ae4e8da
8 changed files with 197 additions and 0 deletions

View 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 %}