--- - name: Packages ansible.builtin.include_tasks: install.yml tags: install - name: Add target user as an admin ansible.builtin.user: name: "{{ target_user }}" append: true groups: "lp" - name: Allow cups on the firewall ansible.posix.firewalld: service: ipp immediate: true permanent: true state: enabled when: ansible_facts.services['firewalld'] is defined tags: firewall - name: Enable cups ansible.builtin.service: name: cups enabled: true state: restarted