Przeglądaj źródła

Install Nginx/Apache default authentication only if required

Emmanuel Bouthenot 6 lat temu
rodzic
commit
e57585714b

+ 1 - 0
roles/webserver/tasks/apache2.yml

@@ -75,6 +75,7 @@
     owner: 'root'
     group: 'www-data'
     mode: '0640'
+  when: http_auth_admin_password is defined and http_auth_admin_password
 
 - name: 'Install PHPMyAdmin virtual host for Apache2 (sites-available)'
   template:

+ 1 - 0
roles/webserver/tasks/nginx.yml

@@ -111,6 +111,7 @@
     owner: 'root'
     group: 'www-data'
     mode: '0640'
+  when: http_auth_admin_password is defined and http_auth_admin_password
 
 - name: 'Install PHPMyAdmin virtual host for nginx (sites-available)'
   template: