X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/afbd6781396cff0e4e3c6e29571b586b495771e5..472d2f1d6bc2d792928b36fe91e54dd6c8963550:/tasks/cups.yml?ds=inline diff --git a/tasks/cups.yml b/tasks/cups.yml index b4e54ed..979736e 100644 --- a/tasks/cups.yml +++ b/tasks/cups.yml @@ -10,6 +10,10 @@ # 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 @@ -18,7 +22,7 @@ cmd: systemctl restart cups - name: create lpadmin user ansible.builtin.user: - name: {{ fsit_smgt_lpadminuser }} + name: "{{ fsit_smgt_lpadminuser }}" append: true groups: lpadmin update_password: always