- name: "[Arch] install nm packages" become: yes community.general.pacman: name: - networkmanager - network-manager-applet - nm-connection-editor when: ansible_distribution == "Archlinux" - name: "[All] Enable network manager" become: yes ansible.builtin.systemd: name: NetworkManager.service state: started enabled: yes