Skip to content
Snippets Groups Projects
Commit 151bac08 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

Merge branch '1-ansible_facts-default_ipv4-prefix-not-available-in-ci' into 'master'

Resolve "ansible_facts.default_ipv4.prefix not available in CI"

Closes #1

See merge request !2
parents 2fa93705 c15e24e3
No related branches found
No related tags found
1 merge request!2Resolve "ansible_facts.default_ipv4.prefix not available in CI"
Pipeline #3346 passed
......@@ -30,6 +30,7 @@
# to avoid any interference and hand over management for that interface to
# `systemd-networkd`. Now, '/etc/network/interfaces' will only contain the
# config for the loopback interface.
- name: deploy network interface config
ansible.builtin.template:
src: "{{ item }}.j2"
......
......@@ -2,7 +2,7 @@
Name={{ ansible_facts.default_ipv4.interface }}
[Network]
Address={{ ansible_facts.default_ipv4.address }}/{{ ansible_facts.default_ipv4.prefix }}
Address={{ ansible_facts.default_ipv4.address }}/{{ ansible_facts.default_ipv4.prefix | default("24") }}
Gateway={{ ansible_facts.default_ipv4.gateway }}
DNS=194.95.142.200
DNS=194.95.142.203
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment