File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments