diff --git a/playbooks/srv-print.yml b/playbooks/srv-print.yml index 8eb4761..819d3c7 100644 --- a/playbooks/srv-print.yml +++ b/playbooks/srv-print.yml @@ -33,11 +33,20 @@ dest: /tmp/ remote_src: yes + - name: remove install prompt from driver installer + replace: + path: /tmp/uld/install.sh + regexp: 'read CONTINUE_INSTALL' + replace: 'CONTINUE_INSTALL="y"' + + - 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 - ansible.builtin.expect: - command: bash /tmp/uld/install.sh - responses: - \*\*\*\* Press 'Enter' to continue or 'q' and then 'Enter' to quit\. \:: "\n y\n" + shell: bash /tmp/uld/install.sh - name: allow access to cups from network replace: