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

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

Resolve "ansible_facts.default_ipv4.prefix not available in CI" by setting default for CIDR netmask to make CI tests pass when ansible_facts.default_ipv4.prefix is not available
parent 2fa93705
No related branches found
No related tags found
1 merge request!2Resolve "ansible_facts.default_ipv4.prefix not available in CI"
......@@ -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