File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 19
19
- name : Update network allocations
20
20
when : ' "HTTP 404" not in node_show.stderr'
21
21
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
29
23
vars :
30
24
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) }}"
33
26
ansible.builtin.copy :
34
27
content : " {{ new_net_alc | to_nice_yaml(indent=2) }}"
35
28
dest : " {{ network_allocation_path }}"
You can’t perform that action at this time.
0 commit comments