# https://github.com/OpenPrinting/cups/issues/158
ansible.builtin.command:
cmd: cupsctl --no-remote-admin --no-remote-any --no-share-printers
+ register: cupsctl_no_remote_admin_response
+ changed_when: cupsctl_no_remote_admin_response.rc != 0
+ when: cupsctl_no_remote_admin_response is defined
+
- name: cups settings
ansible.builtin.command:
cmd: cupsctl --remote-admin --remote-any --share-printers
cmd: systemctl restart cups
- name: create lpadmin user
ansible.builtin.user:
- name: {{ fsit_supolpadmin }}
+ name: "{{ fsit_smgt_lpadminuser }}"
append: true
groups: lpadmin
update_password: always
- password: "{{ lpadminuser|password_hash('sha512') }}"
+ password: "{{ fsit_smgt_lpadminuser_pw | password_hash('sha512') }}"