X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/5f2962060399d24e003beca86cf3e6b178fd89ab..af4d9ba6fac6876fd953a07eb31f3c0f4f8e13ef:/tasks/cups.yml?ds=inline diff --git a/tasks/cups.yml b/tasks/cups.yml index 6395438..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