Extracted service_name of nginx to global var

dehydrated
Felix Stupp 4 years ago
parent 9fa36a210f
commit 98b7f4744e
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -108,6 +108,8 @@ global_log_directory: "/var/log"
global_nfs_port: "2049" # for version 4
global_nfs_directory: "{{ global_webservers_directory }}/nfs"
global_nginx_service_name: "nginx.service"
global_pamd: "/etc/pam.d"
global_redis_configuration_directory: "/etc/redis"

@ -6,4 +6,4 @@ acme_certificate_prefix: "{{ acme_certificates_directory }}/{{ domain }}"
acme_certificate_location: "{{ acme_certificate_prefix }}.crt"
acme_key_location: "{{ acme_certificate_prefix }}.key"
reload_command: "systemctl reload nginx"
reload_command: "systemctl reload {{ global_nginx_service_name }}"

@ -3,11 +3,11 @@
- name: reload nginx
systemd:
enabled: yes
name: nginx
name: "{{ global_nginx_service_name }}"
state: reloaded
- name: restart nginx
systemd:
enabled: yes
name: nginx
name: "{{ global_nginx_service_name }}"
state: restarted

@ -66,7 +66,7 @@
- name: Enable nginx service
systemd:
enabled: yes
name: nginx
name: "{{ global_nginx_service_name }}"
- name: Configure nginx
template:

Loading…
Cancel
Save