WIP
This commit is contained in:
@@ -31,3 +31,4 @@
|
||||
when: udev_rules_to_remove.matched > 0
|
||||
loop_control:
|
||||
loop_var: rule
|
||||
notify: Notify the reboot handler
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
---
|
||||
# tasks file for network-manager
|
||||
#- name: "apt install NetworkManager {{ nm_version }} "
|
||||
# apt:
|
||||
# name: "network-manager{{ nm_version }}"
|
||||
# default_release: "{{ ansible_distribution_release }}-backports"
|
||||
# autoremove: true
|
||||
# update_cache: true
|
||||
#
|
||||
#- name: config globally managed devices
|
||||
# template:
|
||||
# src: "conf.d/10-globally-managed-devices.j2"
|
||||
# dest: "{{ globally_managed_devices_path }}"
|
||||
# owner: root
|
||||
# group: root
|
||||
# mode: 0644
|
||||
# when: globally_managed_devices is true
|
||||
#
|
||||
#- name: cleanup globally managed devices
|
||||
# file:
|
||||
# path: "{{ globally_managed_devices_path }}"
|
||||
# state: absent
|
||||
# when: not globally_managed_devices
|
||||
#
|
||||
#- name: Include tasks for checking and removing udev rules
|
||||
# include_tasks: check_udev_rules.yml
|
||||
- name: "apt install NetworkManager {{ nm_version }} "
|
||||
apt:
|
||||
name: "network-manager{{ nm_version }}"
|
||||
default_release: "{{ ansible_distribution_release }}-backports"
|
||||
autoremove: true
|
||||
update_cache: true
|
||||
|
||||
- name: config globally managed devices
|
||||
template:
|
||||
src: "conf.d/10-globally-managed-devices.j2"
|
||||
dest: "{{ globally_managed_devices_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: globally_managed_devices is true
|
||||
|
||||
- name: cleanup globally managed devices
|
||||
file:
|
||||
path: "{{ globally_managed_devices_path }}"
|
||||
state: absent
|
||||
when: not globally_managed_devices
|
||||
notify: Restart NetworkManager
|
||||
|
||||
- name: Include tasks for checking and removing udev rules
|
||||
include_tasks: check_udev_rules.yml
|
||||
|
||||
- name: Configure NetworkManager
|
||||
community.general.nmcli:
|
||||
@@ -31,10 +32,10 @@
|
||||
conn_name: "{{ connection.con_name }}"
|
||||
ifname: "{{ connection.ifname }}"
|
||||
type: "{{ connection.type }}"
|
||||
# ip4: "{{ connection.ip4 | default('') }}"
|
||||
# gw4: "{{ connection.gw4 | default('') }}"
|
||||
ip4: "{{ connection.ip4 | default('') }}"
|
||||
gw4: "{{ connection.gw4 | default('') }}"
|
||||
dns4: "{{ connection.dns4 | default([]) }}"
|
||||
# routes4: "{{ connection.routes4 | default([]) }}"
|
||||
routes4: "{{ connection.routes4 | default([]) }}"
|
||||
method4: "{{ connection.method4 | default('manual') }}"
|
||||
method6: "{{ connection.method6 | default('auto') }}"
|
||||
state: present
|
||||
|
||||
Reference in New Issue
Block a user