diff --git a/playbooks/srv-print.yml b/playbooks/srv-print.yml index d6c810d..e71d6e0 100644 --- a/playbooks/srv-print.yml +++ b/playbooks/srv-print.yml @@ -17,6 +17,11 @@ state: present key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsLI18nShd47L6o4dL2sIbhJAlWdXXc7BBSqhslTBMVziY6OBazW2jxxU0eN+Wi3RYEuOUd3xt6f56m6NgB96MxvRbfhD06FCetrEzEX/k7yWRVlvyMOSX0RjTr2UWPqOpXmLvbpOvTX4m4+rhpXlXJ1FB/jiZGNYvQEXot8PFTkMBdP0rHsdXiHhJvJy8Y/jDoErrCrK+Yger9ziCeskr3t/KET1nD6e/g4lQwVr7YftMw9s/0RiSVU4VQnUHjMiyXMpg8SD54YkmaQ8TJ14dQ3LVvMjXNGhg3fmmmxQMWot64oLe5HvNJigmKDfYxUzQuX8Ba2zAcnvHkLp/RpVB krumel@YatagarasuDrive" + - name: add the samsung uld driver repo + apt_repository: + repo: deb https://www.bchemnet.com/suldr/ debian extra + state: present + - name: install cups and some other required packages apt: pkg: @@ -61,6 +66,12 @@ path: /etc/nginx/sites-enabled/default state: absent + - name: create scan directory and give www-data rights + file: + path: /srv/scans/ + state: directory + owner: www-data + - name: copy htpasswd copy: src: templates/htpasswd_scan diff --git a/playbooks/templates/scan_image.conf b/playbooks/templates/scan_image.conf index 5437aea..dcd9765 100644 --- a/playbooks/templates/scan_image.conf +++ b/playbooks/templates/scan_image.conf @@ -7,13 +7,13 @@ server { location /scan { content_by_lua_block { - os.execute("scanimage >/tmp/image.jpg") + os.execute("scanimage >/srv/scans/image.jpg") ngx.redirect("/scan/image") } } location /scan/image { - alias /tmp/image.jpg; + alias /srv/scans/image.jpg; } } \ No newline at end of file