dotfiles/roles/cups/tasks/main.yml
Matej Focko c7293cd6ea
chore: move out the server roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-07-12 21:15:31 +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