dotfiles/roles/server/cups/tasks/main.yml
Matej Focko 34798fd196
feat(server/cups): implement CUPS role
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-07-12 14:58:28 +02:00

24 lines
465 B
YAML

---
- 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