Fix node ip presence check defaulting to /32 addresses

Fix typo in task name
This commit is contained in:
Ethan Paul 2021-12-11 17:35:59 -05:00
parent 4e1d50504d
commit 5ead10afb9
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A

View File

@ -6,7 +6,7 @@
prompt: Enter datastore block decryption password
private: true
pre_tasks:
- name: Configure remot execution environment
- name: Configure remote execution environment
ansible.builtin.import_tasks: tasks/meta/bootstrap-remote-env.yaml
roles:
- role: datastore
@ -27,12 +27,12 @@
- name: Determine node addresses
vars:
_node_addresses:
- "{{ lookup('vars', 'ansible_' + skylab_cluster.interface.access).ipv4.address | ansible.netcommon.ipaddr('host/prefix') }}"
- "{{ (lookup('vars', 'ansible_' + skylab_cluster.interface.access).ipv4.address + '/' + lookup('vars', 'ansible_' + skylab_cluster.interface.access).ipv4.netmask) | ansible.netcommon.ipaddr('host/prefix') }}"
ansible.builtin.set_fact:
_node_addresses: "{{ _node_addresses + [item.address | ansible.netcommon.ipaddr('host/prefix')] }}"
_node_addresses: "{{ _node_addresses + [(item.address + '/' + item.netmask) | ansible.netcommon.ipaddr('host/prefix')] }}"
loop: "{{ lookup('vars', 'ansible_' + skylab_cluster.interface.access).ipv4_secondaries }}"
loop_control:
label: "{{ item.address }}"
label: "{{ (item.address + '/' + item.netmask) | ansible.netcommon.ipaddr('host/prefix') }}"
- name: Determine cluster access addresses
run_once: true