2018-09-21 15:59:10 +02:00
|
|
|
---
|
|
|
|
- name: write lg.cfg
|
|
|
|
template:
|
|
|
|
src: lg.cfg.j2
|
|
|
|
dest: "{{ lg_path }}/lg.cfg"
|
2018-09-25 16:41:43 +02:00
|
|
|
become: false
|
2018-09-21 15:59:10 +02:00
|
|
|
notify:
|
|
|
|
- restart bird-lg-webservice
|
|
|
|
|
2018-09-25 16:43:35 +02:00
|
|
|
- name: apply patch simplify-parsing
|
|
|
|
patch:
|
|
|
|
src: simplify-parsing.patch
|
|
|
|
basedir: "{{ lg_path }}"
|
|
|
|
strip: 1
|
|
|
|
|
2018-09-21 15:59:10 +02:00
|
|
|
- name: write vhost lookingglass.conf
|
|
|
|
template:
|
|
|
|
src: lookingglass_vhost.conf.j2
|
|
|
|
dest: /etc/nginx/conf.d/lookingglass.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: restart nginx
|
|
|
|
|
|
|
|
- name: write systemd unit
|
|
|
|
template:
|
|
|
|
src: bird-lg-webservice.service.j2
|
|
|
|
dest: "/etc/systemd/system/bird-lg-webservice.service"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- restart bird-lg-webservice
|
|
|
|
|
|
|
|
- name: configure systemd unit
|
|
|
|
systemd:
|
|
|
|
name: bird-lg-webservice
|
|
|
|
enabled: yes
|
|
|
|
state: started
|