--- # tasks file for workstation - name: Install for arch include_tasks: "{{ ansible_os_family | lower }}.yml" - name: enable service cups systemd: name: cups # name: org.cups.cups enabled: yes state: started - name: Set hostname resolution ansible.builtin.lineinfile: path: /etc/nsswitch.conf regexp: "^hosts:" line: "hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns" - name: enable service avahi-daemon systemd: name: avahi-daemon enabled: yes state: started - name: disable old network services systemd: name: '{{ item }}' enabled: no with_items: - dhcpcd ignore_errors: yes - name: enable service NetworkManager systemd: name: NetworkManager enabled: yes state: started - name: enable service bluetooth systemd: name: bluetooth enabled: yes state: started - name: Virtualisation tools import_tasks: virtualisation.yml - name: activate autofs import_tasks: home_mounts.yml when: autofs | length > 0