fimfarchive/operations/opentracker/tasks/conf.yml
2017-05-28 00:06:41 +02:00

31 lines
582 B
YAML

---
#
# Configures OpenTracker.
#
- name: Create config directory
file:
path: "{{ opentracker.conf }}"
state: directory
mode: 0755
- name: Copy config file
template:
src: config
dest: "{{ opentracker.conf }}/config"
mode: 0644
notify: Restart OpenTracker
- name: Copy whitelist file
copy:
src: whitelist
dest: "{{ opentracker.conf }}/whitelist"
mode: 0644
notify: Restart OpenTracker
- name: Install service
template:
src: service
dest: /etc/systemd/system/opentracker.service
mode: 0644
notify: Restart OpenTracker