From c4cc9994132c4dbdd909d2707161d85b987c1992 Mon Sep 17 00:00:00 2001 From: ricolin Date: Thu, 1 Feb 2024 23:08:12 +0800 Subject: [PATCH] use ansible_default_ipv4.address for ceph --- playbooks/generate_workspace.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/generate_workspace.yml b/playbooks/generate_workspace.yml index e0a936c1b..246902277 100644 --- a/playbooks/generate_workspace.yml +++ b/playbooks/generate_workspace.yml @@ -35,7 +35,7 @@ _ceph_path: "{{ workspace_path }}/group_vars/all/ceph.yml" # Input variables ceph_fsid: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}" - ceph_public_network: 0.0.0.0/0 + ceph_public_network: "{{ ansible_default_ipv4.address|default(ansible_all_ipv4_addresses[0]) }}" tasks: - name: Ensure the Ceph control plane configuration file exists ansible.builtin.file: