aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/storage
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-22 18:55:29 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-22 18:55:29 +0200
commit3b75213d4077b4dbbad1fe43c22beaecf4e815d6 (patch)
treecc2c8aea67333e2df7320c9a225cd585c78421ee /os/config/roles/storage
parent5c31fbf0b12632b32912fa92be3d53b6e3902b91 (diff)
parentb53b71f750008267351d84938b4701413f045628 (diff)
downloadinfrastructure-3b75213d4077b4dbbad1fe43c22beaecf4e815d6.tar.gz
infrastructure-3b75213d4077b4dbbad1fe43c22beaecf4e815d6.zip
We now have IPv6 activated on our network interfaces!
Diffstat (limited to 'os/config/roles/storage')
-rw-r--r--os/config/roles/storage/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/config/roles/storage/tasks/main.yml b/os/config/roles/storage/tasks/main.yml
index a1f2d8f..d66011b 100644
--- a/os/config/roles/storage/tasks/main.yml
+++ b/os/config/roles/storage/tasks/main.yml
@@ -48,7 +48,7 @@
nfs.export-volumes: "off"
cluster.lookup-optimize: "on"
- cluster: "{% for selected_host in groups['cluster_nodes'] %}{{ hostvars[selected_host]['private_ip'] }}{{ ',' if not loop.last else '' }}{% endfor %}"
+ cluster: "{% for selected_host in groups['cluster_nodes'] %}{{ hostvars[selected_host]['ipv4'] }}{{ ',' if not loop.last else '' }}{% endfor %}"
run_once: true
- name: "Create mountpoint"
@@ -61,7 +61,7 @@
tags: gluster-fstab
mount:
path: /mnt/glusterfs
- src: "{{ private_ip }}:/donnees"
+ src: "{{ ipv4 }}:/donnees"
fstype: glusterfs
opts: "defaults,_netdev,noauto,x-systemd.automount"
state: present