we can set a password for dedicated apache user, and enable ssh access too

This commit is contained in:
2021-05-21 09:36:45 +02:00
parent a239313ba1
commit 35c6eee054
3 changed files with 16 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ Role Variables
apache_server_name
apache_server_alias (list)
apache_user_password: default undefined
apache_base_dir: /srv/{{ apache_server_name }}
apache_document_root: {{ apache_base_dir }}/www
apache_access_log: {{ apache_base_dir}}/logs/access_log
@@ -25,7 +26,7 @@ apache_stats: true
apache_ssl_certificate: /etc/letsencrypt/live/{{ apache_server_name }}/cert.pem
apache_ssl_chain: /etc/letsencrypt/live/{{ apache_server_name }}/fullchain.pem
apache_ssl_key: /etc/letsencrypt/live/{{ apache_server_name }}/privkey.pem
apache_user: {{ apache_server_name }}
apache_user: {{ apache_server_name | regex_search( '([^.]+)' ) }} }}
apache_allowoverride: all
Example Playbook