turns out splix actually FUCKING WORKS BUT IT JUST RESPONDS WITH A FUCKING ERROR
This commit is contained in:
@ -18,45 +18,15 @@
|
||||
apt:
|
||||
pkg:
|
||||
- cups
|
||||
- printer-driver-splix
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: download the printer driver binary
|
||||
get_url:
|
||||
url: https://krumel.moe/media/ansible/uld_V1.00.39_01.17.tar.gz
|
||||
dest: /tmp/
|
||||
|
||||
- name: extract the printer driver binary
|
||||
unarchive:
|
||||
src: /tmp/uld_V1.00.39_01.17.tar.gz
|
||||
dest: /tmp/
|
||||
remote_src: yes
|
||||
|
||||
# - name: remove prompts from the installer
|
||||
# replace:
|
||||
# path: /tmp/uld/noarch/pre_install.sh
|
||||
# regexp: 'read'
|
||||
# replace: 'echo'
|
||||
|
||||
# - name: remove eula prompt from driver installer
|
||||
# replace:
|
||||
# path: /tmp/uld/noarch/pre_install.sh
|
||||
# regexp: 'EULA_PAGER\="\$\{PAGER\:\-`which more`\}"'
|
||||
# replace: 'exit 0'
|
||||
|
||||
- name: run the printer driver installer
|
||||
shell: bash /tmp/uld/install.sh
|
||||
environment:
|
||||
- AGREE_EULA: y
|
||||
- QUIT_INSTALL: n
|
||||
- CONFIGURE_FIREWALL: n
|
||||
|
||||
- name: allow access to cups from network
|
||||
replace:
|
||||
path: /etc/cups/cupsd.conf
|
||||
regexp: 'Listen localhost:631'
|
||||
replace: 'Listen 0.0.0.0:631'
|
||||
register: cupsd_mod1
|
||||
|
||||
- name: configure cups for remote access
|
||||
shell: cupsctl --remote-admin --remote-any --share-printers
|
||||
|
||||
Reference in New Issue
Block a user