You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
920 B
YAML

---
- name: Create installation directory
file:
path: "{{ installation_directory }}"
state: directory
owner: "{{ system_user }}"
group: "{{ nginx_system_user }}"
mode: "u=rwx,g=rx,o="
- name: Download Tiny Tiny RSS
become_user: "{{ system_user }}"
git:
repo: "{{ ttrss_repo }}"
version: "{{ ttrss_version }}"
dest: "{{ installation_directory }}"
update: no
- name: Configure Tiny Tiny RSS
template:
src: config.php
dest: "{{ installation_directory }}/config.php"
owner: "{{ system_user }}"
group: "{{ nginx_system_user }}"
mode: "u=rw,g=r,o="
notify: "restart {{ domain }}"
- name: Configure Tiny Tiny RSS systemd service
template:
src: tt-rss.service
dest: "{{ global_systemd_configuration_directory }}/{{ service_name }}"
owner: root
group: root
mode: "u=rw,g=r,o="
notify:
- reload systemd
- "restart {{ domain }}"