Extracted global var for systemd configuration directory

wip
Felix Stupp 5 years ago
parent bcfd4cb010
commit 2f8ef5dc34
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -45,5 +45,7 @@ global_ssh_configuration_environment_directory: "/ansible/ssh_configuration"
global_ssh_configuration_link_name: "config"
global_ssh_configuration_link: "{{ global_ssh_configuration_environment_directory }}/{{ global_ssh_configuration_link_name }}"
global_systemd_configuration_directory: "/etc/systemd/system"
# Debian Repository Mirror
debian_repository_mirror: "http://deb.debian.org/debian/"

@ -75,7 +75,7 @@
- name: Register service for gitea
template:
src: "gitea.service"
dest: "/etc/systemd/system/{{ gitea_service_name }}"
dest: "{{ global_systemd_configuration_directory }}/{{ gitea_service_name }}"
notify:
- reload systemd
- restart gitea

@ -10,5 +10,5 @@
- name: Register service for node server
template:
src: node.service
dest: "/etc/systemd/system/{{ service_name }}"
dest: "{{ global_systemd_configuration_directory }}/{{ service_name }}"
notify: "restart {{ domain }}"

@ -91,5 +91,5 @@
- name: Register service for SpotMe
template:
src: spotme.service
dest: "/etc/systemd/system/{{ spotme_service_name }}"
dest: "{{ global_systemd_configuration_directory }}/{{ spotme_service_name }}"
notify: restart spotme

Loading…
Cancel
Save