# TO DO: restore http://box/libros & http://box/livres etc, alongside English (#2195) # RELATED: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy - name: Enable http://box{{ calibreweb_url1 }} via NGINX, by installing {{ nginx_conf_dir }}/calibre-web-nginx.conf from template # http://box/books template: src: calibre-web-nginx.conf.j2 dest: "{{ nginx_conf_dir }}/calibre-web-nginx.conf" # /etc/nginx/conf.d when: calibreweb_enabled - name: Disable http://box{{ calibreweb_url1 }} via NGINX, by removing {{ nginx_conf_dir }}/calibre-web-nginx.conf file: path: "{{ nginx_conf_dir }}/calibre-web-nginx.conf" # /etc/nginx/conf.d state: absent when: not calibreweb_enabled - name: Restart 'nginx' systemd service systemd: name: nginx state: restarted