Role service-yanic: restart yanic and respondd

This commit is contained in:
Julian Labus 2019-05-05 19:06:22 +02:00
parent 3c010e2c5f
commit 552c1f2729
No known key found for this signature in database
GPG Key ID: 8AF209F2C6B3572A
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
daemon_reload: yes daemon_reload: yes
- name: restart yanic - name: restart yanic
when: server_type == "monitoring"
systemd: systemd:
name: yanic name: yanic
state: restarted state: restarted

View File

@ -26,6 +26,9 @@
shell: 'go install {{ gopath }}/src/{{ yanic_dst }}' shell: 'go install {{ gopath }}/src/{{ yanic_dst }}'
environment: environment:
GOPATH: "{{ gopath }}" GOPATH: "{{ gopath }}"
notify:
- restart respondd
- restart yanic
- name: configure yanic - name: configure yanic
include_tasks: yanic.yml include_tasks: yanic.yml