network: Add support for setting static IP on RedHat
This commit is contained in:
parent
1a0a8ac1d2
commit
f87df3b96d
3 changed files with 56 additions and 0 deletions
|
@ -3,3 +3,8 @@
|
|||
- name: restart network
|
||||
command: /bin/sh /etc/netstart
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
- block:
|
||||
- name: reload network manager connections
|
||||
command: nmcli c reload
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue