Skip to content

Commit 1a353e0

Browse files
committed
fixing nmcli issue without requiring ansible update
1 parent c77a089 commit 1a353e0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tasks/deploy_bastion_ipi.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,26 @@
231231
ansible.builtin.command: virsh pool-autostart default
232232
when: ocp4_aio_deploy_type == "ipi"
233233

234+
- name: Set NetworkManager ipv6 default addr gen mode
235+
blockinfile:
236+
path: /etc/NetworkManager/NetworkManager.conf
237+
block: |
238+
[connection]
239+
ipv6.addr-gen-mode=eui64
240+
when: ocp4_aio_deploy_type == "ipi"
241+
242+
- name: Restart NetworkManager to apply new default
243+
ansible.builtin.service:
244+
name: NetworkManager
245+
state: restarted
246+
when: ocp4_aio_deploy_type == "ipi"
247+
234248
- name: Configure Provisioning Bridge for IPI
235249
nmcli:
236250
type: bridge
237251
conn_name: provisioning
238252
ip4: 172.22.0.1/24
239253
gw4: 172.22.0.254
240-
addr_gen_mode6: eui64
241254
state: present
242255
when: ocp4_aio_deploy_type == "ipi"
243256

@@ -257,7 +270,6 @@
257270
conn_name: baremetal
258271
ip4: 192.168.123.100/24
259272
gw4: 192.168.123.1
260-
addr_gen_mode6: eui64
261273
state: present
262274
when: ocp4_aio_deploy_type == "ipi"
263275

0 commit comments

Comments
 (0)