diff --git a/group_vars/all/network_interfaces.yml b/group_vars/all/network_interfaces.yml index 2a5a4e94b58ed32cf1e0841e7de96ebdedb5a9ab..ee96599edb0c901aa702f4fb71005eaaea6db1bd 100644 --- a/group_vars/all/network_interfaces.yml +++ b/group_vars/all/network_interfaces.yml @@ -2,29 +2,29 @@ glob_network_interfaces: vlan: - name: srv id: 2 - gateway: 185.230.79.4 # 185.230.79.62 - dns: 185.230.79.4 # 185.230.79.62 - gateway_v6: 2a0c:700:2::ff:fe00:9902 + gateway: "{{ query('ldap', 'ip', 'passerelle', 'srv') | ipv4 | first }}" + dns: "{{ query('ldap', 'ip', 'passerelle', 'srv') | ipv4 | first }}" + gateway_v6: "{{ query('ldap', 'ip', 'passerelle', 'srv') | ipv6 | first }}" - name: srv_nat id: 3 - gateway: 172.16.3.99 - dns: 172.16.3.99 - gateway_v6: 2a0c:700:3::ff:fe00:9903 + gateway: "{{ query('ldap', 'ip', 'passerelle', 'srv-nat') | ipv4 | first }}" + dns: "{{ query('ldap', 'ip', 'passerelle', 'srv-nat') | ipv4 | first }}" + gateway_v6: "{{ query('ldap', 'ip', 'passerelle', 'srv-nat') | ipv6 | first }}" - name: san id: 4 - name: adm id: 10 - dns: 172.16.10.101 172.16.10.102 + dns: "{{ query('ldap', 'ip', 'routeur-sam', 'adm') | ipv4 | first }} {{ query('ldap', 'ip', 'routeur-daniel', 'adm') | ipv4 | first }}" - name: infra id: 11 - dns: 172.16.32.99 + dns: "{{ query('ldap', 'ip', 'passerelle', 'infra') | ipv4 | first }}" - name: adh id: 12 - gateway: 185.230.78.99 - dns: 185.230.78.99 - gateway_v6: 2a0c:700:12::ff:fe00:9912 + gateway: "{{ query('ldap', 'ip', 'passerelle', 'adh') | ipv4 | first }}" + dns: "{{ query('ldap', 'ip', 'passerelle', 'adh') | ipv4 | first }}" + gateway_v6: "{{ query('ldap', 'ip', 'passerelle', 'adh') | ipv6 | first }}" - name: adh_nat id: 13 - gateway: 100.64.0.99 - dns: 100.64.0.99 - gateway_v6: 2a0c:700:13::ff:fe00:9913 + gateway: "{{ query('ldap', 'ip', 'passerelle', 'adh-nat') | ipv4 | first }}" + dns: "{{ query('ldap', 'ip', 'passerelle', 'adh-nat') | ipv4 | first }}" + gateway_v6: "{{ query('ldap', 'ip', 'passerelle', 'adh-nat') | ipv6 | first }}"