create printerlist.csv to inform VMs about available printers

This commit is contained in:
Raphael Dannecker 2024-03-10 09:58:03 +01:00
parent ed7dadf612
commit c99ec444f8
2 changed files with 26 additions and 1 deletions

View file

@ -12,6 +12,26 @@
line: '\1No'
backrefs: yes
- name: Listen on VMBridge
lineinfile:
dest: /etc/cups/cupsd.conf
line: 'Listen 192.168.122.1:631'
insertafter: 'Listen localhost:631'
state: present
- name: Allow access from localhost and from VM
blockinfile:
dest: /etc/cups/cupsd.conf
block: |
Allow localhost
Allow 192.168.122.0/24
insertafter: "<Location {{ item }}>"
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item }}"
state: present
loop:
- "/"
- "/admin"
- name: Disable cups-browsed
ansible.builtin.systemd:
name: cups-browsed.service