Skip to content
Snippets Groups Projects
Commit c4a9d078 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct path to http auth passwd file and change http conf appended bit

Former-commit-id: 85b9e6503aca88e0161e506eb35609814ceec04d
parent f80024a9
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
settings: "ippisite.{{ ansible_hostname }}_settings" settings: "ippisite.{{ ansible_hostname }}_settings"
# FIXME: this should obviously be removed before switching to prod. env. # FIXME: this should obviously be removed before switching to prod. env.
- htpasswd: - htpasswd:
path: /etc/nginx/passwdfile path: /etc/ippidb-80/passwdfile
name: ippidb name: ippidb
password: 'LeroyMerlin' #FIXME FIXME should be secret password: 'LeroyMerlin' #FIXME FIXME should be secret
owner: root owner: root
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
lineinfile: dest=/etc/ippidb-80/httpd.conf lineinfile: dest=/etc/ippidb-80/httpd.conf
regexp='' regexp=''
insertafter=EOF insertafter=EOF
line='<Location '/'>\nRequire all denied\nRequire ip 10.6.108.60\nRequire ip 10.6.107.22\nRequire ip 157.99\n</Location>\n' line='LoadModule auth_basic_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_auth_basic.so'\nLoadModule authn_core_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authn_core.so'\nLoadModule authn_file_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authn_file.so'\nLoadModule authz_core_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authz_core.so'\nLoadModule authz_user_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authz_user.so'\n<Location />AuthType Basic\nAuthName "Restricted Files"\nAuthUserFile /etc/ippidb-80/passwords\nRequire valid-user\n</Location>\n'
- name: copy systemd service file for IPPIDB-web - name: copy systemd service file for IPPIDB-web
copy: copy:
remote_src: true remote_src: true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment