aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/14_freshrss/tasks/main.yml
blob: 50b8e7c330197ca5efc884199cbdb4dd037cae53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Download FreshRSS
  shell: |
    if [ ! -f /usr/local/FreshRSS/constants.php ]; then
      fetch -qo /tmp/freshrss.tar.gz https://github.com/FreshRSS/FreshRSS/archive/refs/heads/edge.tar.gz
      tar -xf /tmp/freshrss.tar.gz --strip-components=1 -C /usr/local/FreshRSS
      rm -f /tmp/freshrss.tar.gz
    fi
  register: _freshrss_download
  changed_when: "'constants.php' not in _freshrss_download.cmd"

- name: Create php-fpm socket directory
  file:
    path: /var/run/php
    state: directory
    owner: www
    group: www
    mode: "0755"

- name: Symlink FreshRSS public to webroot
  file:
    src: /usr/local/FreshRSS/p
    dest: /var/www
    state: link
    force: true

- import_role:
    name: jail
    tasks_from: jail_launch