---
- name: Install NetworkManager and applet
  become: true
  package:
    name: "{{ item }}"
  with_items:
    - NetworkManager
    - network-manager-applet

- name: Enable NetworkManager.service
  systemd:
    name: NetworkManager
    enabled: true


---
- name: Install NetworkManager and applet
  become: true
  package:
    name: "{{ item }}"
  with_items:
    - networkmanager
    - network-manager-applet

- name: Enable NetworkManager.service
  become: yes
  systemd:
    name: NetworkManager
    enabled: true


Fix NetworkManager role - Correct networkmanager package name - Service has to be started as root
Fix NetworkManager role
- Correct networkmanager package name
- Service has to be started as root
