]> freie-schul-it.de Git - fsit_smgt.git/blob - tasks/cups.yml
nfs export dir
[fsit_smgt.git] / tasks / cups.yml
1 ---
2 - name: install server specific packages
3 ansible.builtin.apt:
4 update_cache: yes
5 pkg:
6 - cups
7 - hplip
8 - printer-driver-gutenprint
9 - name: cups reset settings
10 # https://github.com/OpenPrinting/cups/issues/158
11 ansible.builtin.command:
12 cmd: cupsctl --no-remote-admin --no-remote-any --no-share-printers
13 register: cupsctl_no_remote_admin_response
14 changed_when: cupsctl_no_remote_admin_response.rc != 0
15 when: cupsctl_no_remote_admin_response is defined
16
17 - name: cups settings
18 ansible.builtin.command:
19 cmd: cupsctl --remote-admin --remote-any --share-printers
20 - name: cups service neustarten
21 ansible.builtin.command:
22 cmd: systemctl restart cups
23 - name: create lpadmin user
24 ansible.builtin.user:
25 name: "{{ fsit_smgt_lpadminuser }}"
26 append: true
27 groups: lpadmin
28 update_password: always
29 password: "{{ fsit_smgt_lpadminuser_pw | password_hash('sha512') }}"
30