forked from FF-RGB/ansible
Unbreank yanic service
This commit is contained in:
parent
af446ed4e9
commit
6770035a61
@ -4,7 +4,7 @@ Description=yanic
|
||||
[Service]
|
||||
Type=simple
|
||||
User=yanic
|
||||
ExecStart=/opt/go/bin/yanic -config /etc/yanic.conf
|
||||
ExecStart=/opt/go/bin/yanic serve --config /etc/yanic.conf
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
@ -10,7 +10,7 @@
|
||||
notify: Restart yanic
|
||||
|
||||
- name: Configure yanic
|
||||
template: src=config.toml dest=/etc/yanic.conf
|
||||
template: src=config.toml.j2 dest=/etc/yanic.conf
|
||||
notify: Restart yanic
|
||||
|
||||
- name: Create directories
|
||||
@ -20,7 +20,7 @@
|
||||
- /var/lib/yanic
|
||||
|
||||
- name: Install system unit
|
||||
template: src=yanic.service dest=/lib/systemd/system/yanic.service
|
||||
copy: src=yanic.service dest=/lib/systemd/system/yanic.service
|
||||
notify:
|
||||
- Reload systemd
|
||||
- Restart yanic
|
||||
@ -29,7 +29,7 @@
|
||||
service: name=yanic enabled=yes
|
||||
|
||||
- name: Install system publish unit
|
||||
template: src={{ item }} dest=/lib/systemd/system/{{ item }}
|
||||
template: src={{ item }}.j2 dest=/lib/systemd/system/{{ item }}
|
||||
when: yanic_publisher
|
||||
with_items:
|
||||
- yanic-publish.service
|
||||
|
Loading…
Reference in New Issue
Block a user