Skip to content

Commit

Permalink
Ensure we bounce slaves when bouncing master
Browse files Browse the repository at this point in the history
  • Loading branch information
jovial committed Nov 8, 2024
1 parent 4ecee7b commit bee5b1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
- interfaces_route_tables | length > 0
notify: Restart NetworkManager

- name: RedHat | Add NetworkManager Custom Configuration
copy:
content: |
# Ansible managed
[connection]
connection.autoconnect-slaves=1
dest: /etc/NetworkManager/conf.d/80-rigart-interfaces.conf
notify: Restart NetworkManager
become: true

# CentOS 8/9 cloud images ship with ifcfg files for ens3 and eth0. ifcfg-ens3
# seems to be a relic from the image build process, and causes the network
# service to fail. ifcfg-eth0 is useful for most virtual machines, but if a
Expand Down

0 comments on commit bee5b1b

Please sign in to comment.