Init.
This commit is contained in:
26
tasks/main.yml
Normal file
26
tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# tasks file for network-manager
|
||||
- name: "apt install NetworkManager {{ nm_version }} "
|
||||
become: true
|
||||
apt:
|
||||
name: "network-manager{{ nm_version }}"
|
||||
default_release: "{{ ansible_distribution_release }}-backports"
|
||||
autoremove: true
|
||||
update_cache: true
|
||||
|
||||
- name: config globally managed devices
|
||||
become: true
|
||||
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
|
||||
become: true
|
||||
file:
|
||||
path: "{{ globally_managed_devices_path }}"
|
||||
state: absent
|
||||
when: not globally_managed_devices
|
||||
Reference in New Issue
Block a user