xoxys.freshrss_docker/tasks/setup.yml

21 lines
626 B
YAML
Raw Normal View History

2019-10-02 13:48:03 +00:00
---
- block:
- name: Deploy compose file to '{{ freshrss_service_directory }}'
template:
src: "services/freshrss-compose.yml.j2"
dest: "{{ freshrss_service_directory }}/docker-compose.yml"
owner: root
group: root
mode: 0644
2019-11-24 22:25:10 +00:00
validate: "{{ freshrss_docker_compose_bin }} -f %s config -q"
2019-10-02 13:48:03 +00:00
notify: __freshrss_restart
- name: Create systemd unit files
template:
src: "etc/systemd/system/freshrss.service.j2"
dest: "/etc/systemd/system/freshrss.service"
mode: 0644
notify: __freshrss_restart
become: True
become_user: root