+---
+- name: install server specific packages
+ ansible.builtin.apt:
+ update_cache: yes
+ pkg:
+ - cups
+ - hplip
+ - printer-driver-gutenprint
+- name: cups reset settings
+ # https://github.com/OpenPrinting/cups/issues/158
+ ansible.builtin.command:
+ cmd: cupsctl --no-remote-admin --no-remote-any --no-share-printers
+- name: cups settings
+ ansible.builtin.command:
+ cmd: cupsctl --remote-admin --remote-any --share-printers
+- name: cups service neustarten
+ ansible.builtin.command:
+ cmd: systemctl restart cups
+- name: create lpadmin user
+ ansible.builtin.user:
+ name: {{ fsit_supolpadmin }}
+ append: true
+ groups: lpadmin
+ update_password: always
+ password: "{{ lpadminuser|password_hash('sha512') }}"
+