dotfiles/roles/server/cups/tasks/main.yml

25 lines
465 B
YAML
Raw Normal View History

---
- 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
tags: firewall
- name: Enable cups
ansible.builtin.service:
name: cups
enabled: true
state: restarted