-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Ansible playbook assumes second interface is named eth1.
I manually changed roles/common/tasks/main.yml to use another interface name. The problem was all hosts didn't have the same name 'client' had eth1 and 'master atomic0 atomic1 atomic2' had 'enp0s8' interface.
Orginial lines in main.yml:
- name: fix issue with eth1
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth1 regexp="^NM_CONTROLLED=" line="NM_CONTROLLED=yes"
My "fixed lines":
- name: fix issue with enp0s8
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-enp0s8 regexp="^NM_CONTROLLED=" line="NM_CONTROLLED=yes"
However, which I knew how to select different interfaces for different hosts or that ansible could do a check.
Metadata
Metadata
Assignees
Labels
No labels