cups_server: Fix sharing options
This commit is contained in:
parent
3328152314
commit
13eed06124
2 changed files with 236 additions and 2 deletions
|
@ -36,6 +36,13 @@
|
|||
line: "#Listen 631"
|
||||
notify: Restart cups
|
||||
|
||||
- name: Share printers
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cups/cupsd.conf
|
||||
line: "Port 631"
|
||||
insertbefore: "^Listen .*.sock"
|
||||
notify: Restart cups
|
||||
|
||||
- name: Set ssl listen port
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cups/cupsd.conf
|
||||
|
@ -86,11 +93,11 @@
|
|||
force: true
|
||||
notify: Restart cups
|
||||
|
||||
- name: Disable printer advertising
|
||||
- name: Enable printer sharing
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cups/cupsd.conf
|
||||
regexp: "^Browsing .*"
|
||||
line: "Browsing No"
|
||||
line: "Browsing Yes"
|
||||
notify: Restart cups
|
||||
|
||||
- name: Disable unauthenticated access from cups
|
||||
|
@ -147,3 +154,11 @@
|
|||
name: cups
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: Copy ppd files
|
||||
ansible.builtin.copy:
|
||||
dest: /usr/local/share/cups-ppd/
|
||||
src: cups-ppd/
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue