diff --git a/playbooks/srv-print.yml b/playbooks/srv-print.yml index 3307443..9f72024 100644 --- a/playbooks/srv-print.yml +++ b/playbooks/srv-print.yml @@ -29,31 +29,10 @@ replace: 'Listen 0.0.0.0:631' register: cupsd_mod1 - - name: allow access to the webinterface - replace: - path: /etc/cups/cupsd.conf - regexp: '[^<]*<\/Location>' - replace: | - - Order allow,deny - Allow all - - register: cupsd_mod2 - - - name: configure admin acces for the webinterface - replace: - path: /etc/cups/cupsd.conf - regexp: '[^<]*<\/Location>' - replace: | - - AuthType Default - Require user @SYSTEM - Order allow,deny - - register: cupsd_mod3 + - name: configure cups for remote access + shell: cupsctl --remote-admin --remote-any --share-printers - name: service: name: cups - state: restarted - when: cupsd_mod1.changed or cupsd_mod2.changed or cupsd_mod3.changed \ No newline at end of file + state: restarted \ No newline at end of file