Skip to content

Commit 8f41ec2

Browse files
Update etc/kayobe/ansible/deploy-baremetal-instance.yml
Co-authored-by: Alex-Welsh <[email protected]>
1 parent 40075e8 commit 8f41ec2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

etc/kayobe/ansible/deploy-baremetal-instance.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@
1919
- name: Update network allocations
2020
when: '"HTTP 404" not in node_show.stderr'
2121
block:
22-
- name: Read network allocations
23-
ansible.builtin.set_fact:
24-
net_alc_yaml: "{{ admin_oc_net_ips }}"
25-
26-
- name: Write node IP address to allocations
27-
ansible.builtin.set_fact:
28-
new_net_alc: "{{ net_alc_yaml | combine(new_ips, recursive=True) }}"
22+
- name: Write new network allocations
2923
vars:
3024
new_ips: "{ '{{ admin_oc_net_name }}_ips': { '{{ inventory_hostname }}': '{{ ansible_host }}' } }"
31-
32-
- name: Write new network allocations
25+
new_net_alc: "{{ admin_oc_net_ips | combine(new_ips, recursive=True) }}"
3326
ansible.builtin.copy:
3427
content: "{{ new_net_alc | to_nice_yaml(indent=2) }}"
3528
dest: "{{ network_allocation_path }}"

0 commit comments

Comments
 (0)