Skip to content

Commit def1326

Browse files
committed
Removed hardcoded eth1 and replaced with {{ oracle_gi_nic_priv }} when setting up an interface for interconnect traffic
1 parent 6b2a70d commit def1326

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

roles/orahost/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258

259259

260260
- name: Network | Setup ip-address for RAC Interconnect
261-
template: src=ifcfg-eth1.j2 dest=/etc/sysconfig/network-scripts/ifcfg-eth1 owner=root mode=0644
261+
template: src=ifcfg-eth1.j2 dest=/etc/sysconfig/network-scripts/ifcfg-{{ oracle_gi_nic_priv }} owner=root mode=0644
262262
when: configure_interconnect and configure_cluster and ansible_os_family == 'RedHat'
263263
tags:
264264
- eth1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
DEVICE=eth1
2-
IPADDR={{ oracle_ic_net }}
1+
DEVICE={{ oracle_gi_nic_priv }}
2+
IPADDR={{ oracle_ic_net }}
33
NETMASK=255.255.255.0
44
ONBOOT=yes
55
BOOTPROTO=none
66
USERCTL=no
77
TYPE=Ethernet
8-
HWADDR={{ ansible_eth1.macaddress }}
8+
HWADDR={{ hostvars[inventory_hostname]['ansible_' + oracle_gi_nic_priv]['macaddress'] }}

0 commit comments

Comments
 (0)