trixie/roles/lmn_printer/tasks/main.yml

42 lines
817 B
YAML
Raw Normal View History

2023-08-16 12:17:17 +02:00
---
- name: Install cups and python libs
apt:
name:
- cups
state: latest
- name: Disable cups printer browsing
lineinfile:
dest: /etc/cups/cupsd.conf
regexp: '^(Browsing ).*'
line: '\1No'
backrefs: yes
- name: Disable cups-browsed
ansible.builtin.systemd:
name: cups-browsed.service
state: stopped
enabled: no
- name: install install-printers.sh
2023-08-16 12:17:17 +02:00
template:
src: install-printers.sh.j2
dest: /usr/local/bin/install-printers.sh
2023-08-16 12:17:17 +02:00
mode: 0755
- name: install lmn-install-printers sudoers
2023-08-16 12:17:17 +02:00
copy:
src: 90-lmn-install-printers
2023-08-16 12:17:17 +02:00
dest: /etc/sudoers.d/
mode: 0660
owner: root
group: root
- name: install lmn-printer.sh in /etc/profile.d/
copy:
src: lmn-printer.sh
dest: /etc/profile.d/
mode: 0644
owner: root
group: root