2019-02-21 14:25:31 +01:00
|
|
|
---
|
2019-05-29 11:11:46 +02:00
|
|
|
- include_tasks: versioncheck.yml
|
|
|
|
when: submodules_versioncheck|bool
|
|
|
|
|
2019-02-21 14:25:31 +01:00
|
|
|
- name: install needed packages on arch
|
|
|
|
become: yes
|
2022-04-23 20:10:38 +02:00
|
|
|
community.general.pacman:
|
2019-02-21 14:25:31 +01:00
|
|
|
name:
|
|
|
|
- wireless_tools
|
|
|
|
- iw
|
|
|
|
- crda
|
|
|
|
- networkmanager
|
2019-04-07 19:08:27 +02:00
|
|
|
- dnsutils
|
2019-02-21 14:25:31 +01:00
|
|
|
- mtr
|
2019-04-07 19:08:27 +02:00
|
|
|
state: latest
|
|
|
|
when: ansible_distribution == 'Archlinux'
|
|
|
|
|
2019-04-24 13:40:49 +02:00
|
|
|
- name: install Networkmanager
|
|
|
|
become: yes
|
2022-04-23 20:10:38 +02:00
|
|
|
ansible.builtin.dnf:
|
2019-04-24 13:40:49 +02:00
|
|
|
name: NetworkManager
|
|
|
|
state: present
|
2019-04-24 14:50:40 +02:00
|
|
|
when: ansible_distribution == 'Fedora'
|
2019-04-24 13:40:49 +02:00
|
|
|
|
|
|
|
- name: install NetworkManager
|
|
|
|
become: yes
|
2022-04-23 20:10:38 +02:00
|
|
|
ansible.builtin.apt:
|
2019-04-24 13:40:49 +02:00
|
|
|
name: networkmanager
|
|
|
|
state: present
|
2019-04-24 14:50:40 +02:00
|
|
|
when: ansible_os_family == 'Debian'
|
2019-04-24 13:40:49 +02:00
|
|
|
|
2019-04-07 19:08:27 +02:00
|
|
|
- name: install needed packages for NetworkManager
|
|
|
|
become: yes
|
2022-04-23 20:10:38 +02:00
|
|
|
ansible.builtin.package:
|
2019-04-07 19:08:27 +02:00
|
|
|
name:
|
|
|
|
- dialog
|
|
|
|
- wpa_supplicant
|
2019-02-21 14:25:31 +01:00
|
|
|
- network-manager-applet
|
|
|
|
- nm-connection-editor
|
2019-04-24 13:40:49 +02:00
|
|
|
state: present
|
2019-04-07 19:08:27 +02:00
|
|
|
|
2019-04-24 13:40:49 +02:00
|
|
|
- name: enable networkmanager
|
2019-02-21 14:25:31 +01:00
|
|
|
become: yes
|
2022-04-23 20:10:38 +02:00
|
|
|
ansible.builtin.systemd:
|
2019-02-21 14:25:31 +01:00
|
|
|
name: NetworkManager.service
|
|
|
|
enabled: yes
|