From c4f1423501800b9a05358b45335b9f3ce0997dc9 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 23 Dec 2023 20:53:38 +0100 Subject: [PATCH] recover dynamic ip for nfs mount --- ansible/group_vars/all/all | 2 +- ansible/group_vars/staging | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/group_vars/all/all b/ansible/group_vars/all/all index 77c83f0..9e2a88b 100644 --- a/ansible/group_vars/all/all +++ b/ansible/group_vars/all/all @@ -4,4 +4,4 @@ system_arch_local_mirror: "https://arch.{{domain.name}}/repo/archlinux_$arch" system_sudoers_group: "serverAdmin" system_ipV6_disable: True system_ip_unprivileged_port_start: 0 -nas_ip: "192.168.1.10" +nas_ip: "{{ hostvars[groups['NAS'][0]]['ansible_facts']['default_ipv4']['address']|default('192.168.1.10')}}" diff --git a/ansible/group_vars/staging b/ansible/group_vars/staging index 44d961d..8b169c5 100644 --- a/ansible/group_vars/staging +++ b/ansible/group_vars/staging @@ -6,7 +6,6 @@ consul_bootstrap_expect: 2 consul_domain: "consul" nomad_bootstrap_expect: 2 vault_unseal_keys_dir_output: "~/vaultUnseal/staging" -nfs_domain_name: "{{ domain.name}}" hosts_entries: - ip: "{{ hostvars['nas-dev']['ansible_default_ipv4']['address'] }}" name: diskstation.ducamps.eu