network: Add support for NetworkManager
This commit is contained in:
parent
fd495036f2
commit
eb1b324c8d
1 changed files with 16 additions and 0 deletions
|
@ -18,8 +18,24 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
# notify: Reload network manager connections
|
||||||
|
with_items: "{{ network_interfaces }}"
|
||||||
|
when:
|
||||||
|
- ansible_distribution != "Fedora"
|
||||||
|
- ansible_distribution_major_version | int <= 8
|
||||||
|
|
||||||
|
- name: Create ethernet interface configurations
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: nmconnection.j2
|
||||||
|
dest: "/etc/NetworkManager/system-connections/{{ item.device }}.nmconnection"
|
||||||
|
mode: "0600"
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
notify: Reload network manager connections
|
notify: Reload network manager connections
|
||||||
with_items: "{{ network_interfaces }}"
|
with_items: "{{ network_interfaces }}"
|
||||||
|
when: >-
|
||||||
|
ansible_distribution == "Fedora" or
|
||||||
|
ansible_distribution_major_version | int >= 9
|
||||||
|
|
||||||
- name: Install keepalived
|
- name: Install keepalived
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
|
|
Loading…
Add table
Reference in a new issue