--- # tasks file for config # # - import_tasks: parsec-bug.yml - name: Enable Cockpit Service become: yes become_method: sudo ansible.builtin.systemd_service: name: cockpit.socket state: started enabled: yes - name: Enable cockpit in firewalld become: yes become_method: sudo ansible.posix.firewalld: service: cockpit permanent: yes state: enabled - name: Enable Avahi Service become: yes become_method: sudo ansible.builtin.systemd_service: name: avahi-daemon state: started enabled: yes - name: Enable mdns in Firewall become: yes become_method: sudo ansible.posix.firewalld: service: mdns permanent: yes state: enabled - name: Modify nsswitch file for mdns lookups become: yes become_method: sudo ansible.builtin.lineinfile: path: /etc/nsswitch.conf regexp: '^hosts:' line: 'hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname' notify: restart_avahi - name: Set hostname to bitb0x become: yes become_method: sudo ansible.builtin.hostname: name: bitb0x notify: restart_avahi - name: Refresh gpg keys shell: gpg --keyserver hkps://keys.openpgp.org --refresh-keys - name: Enable Zerotier become: yes become_method: sudo ansible.builtin.systemd_service: name: zerotier-one state: started enabled: yes when: (zerotier_network is defined) and (zerotier_network|length>0)