Skip to content

Commit

Permalink
use ansible default ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Feb 1, 2024
1 parent 385f269 commit e6b4fac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playbooks/generate_workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
_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: 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:
Expand Down

0 comments on commit e6b4fac

Please sign in to comment.