Skip to content

Commit a5357bd

Browse files
jakub-vavra-czrichm
authored andcommitted
ci: Update dyndns test for Fedora 42 and RHEL 10
Dyndns test needs to detect network interface name to work properly. Instead of defaulting to eth0 we use real name for the test.
1 parent 6f9f1bf commit a5357bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/tests_full_integration_dyndns.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,22 @@
6262

6363
- name: Ensure that the role configures dynamic dns
6464
hosts: client
65+
gather_facts: true
6566
tasks:
6667
- name: Run the integration
6768
when: "'ad' in groups and groups['ad']"
6869
block:
6970
- name: Debug dyndns settings
7071
debug:
7172
msg: >-
72-
Interface {{ _ad_dyndns_iface | default('eth0') }} and server
73+
Interface {{ _ad_dyndns_iface | default(ansible_default_ipv4.interface) }} and server
7374
: {{ hostvars[groups['ad'][0]].ansible_host }}
7475
- name: Run the system role with proper config
7576
include_role:
7677
name: linux-system-roles.ad_integration
7778
vars:
7879
ad_dyndns_server: "{{ hostvars[groups['ad'][0]].ansible_host }}"
79-
ad_dyndns_iface: "{{ _ad_dyndns_iface | default('eth0') }}"
80+
ad_dyndns_iface: "{{ _ad_dyndns_iface | default(ansible_default_ipv4.interface) }}"
8081
ad_dyndns_auth: "none"
8182
ad_dyndns_update: true
8283
ad_dyndns_refresh_interval: 60

0 commit comments

Comments
 (0)