diff --git a/skylab/core/playbooks/node_up.yaml b/skylab/core/playbooks/node_up.yaml index e3af147..b72cb0b 100644 --- a/skylab/core/playbooks/node_up.yaml +++ b/skylab/core/playbooks/node_up.yaml @@ -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