]> freie-schul-it.de Git - fsit_smgt.git/blobdiff - tasks/cups.yml
kivitendo mit ssl
[fsit_smgt.git] / tasks / cups.yml
index b4e54ed2e4916694307585a31426dd5326db0391..979736ea96fbcd8b4b1d1b5a5841b4c2a68654c1 100644 (file)
   # https://github.com/OpenPrinting/cups/issues/158
   ansible.builtin.command:
     cmd: cupsctl --no-remote-admin --no-remote-any --no-share-printers
   # 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
 - 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:
     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
     append: true
     groups: lpadmin
     update_password: always