ansible-ffibk/roles/service-bird-lg/tasks/lg-proxy.yml

25 lines
479 B
YAML
Raw Normal View History

2018-09-21 15:59:10 +02:00
---
- name: write lgproxy.cfg
template:
src: lgproxy.cfg.j2
dest: "{{ lg_path }}/lgproxy.cfg"
notify:
- restart bird-lg-proxy
- name: write systemd unit
template:
src: bird-lg-proxy.service.j2
dest: "/etc/systemd/system/bird-lg-proxy.service"
owner: root
group: root
mode: 0644
notify:
- reload systemd
- restart bird-lg-proxy
- name: configure systemd unit
systemd:
name: bird-lg-proxy
enabled: yes
state: started