Browse Source

Install Nginx/Apache default authentication only if required

Emmanuel Bouthenot 6 năm trước cách đây
mục cha
commit
e57585714b
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      roles/webserver/tasks/apache2.yml
  2. 1 0
      roles/webserver/tasks/nginx.yml

+ 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: