130
|
1 |
--- |
|
2 |
|
|
3 |
- name: add miniflux user |
|
4 |
become: yes |
|
5 |
user: name="miniflux" system="yes" create_home="no" |
|
6 |
|
|
7 |
- name: download miniflux |
|
8 |
become: yes |
|
9 |
get_url: |
|
10 |
url: "{{miniflux_url}}" |
|
11 |
dest: "/usr/local/bin/miniflux" |
|
12 |
owner: "root" |
|
13 |
group: "root" |
|
14 |
mode: "0755" |
|
15 |
|
|
16 |
- name: configure miniflux |
|
17 |
become: yes |
|
18 |
template: |
|
19 |
src: "miniflux.conf.j2" |
|
20 |
dest: "/etc/miniflux.conf" |
|
21 |
owner: "root" |
|
22 |
group: "root" |
|
23 |
mode: "0755" |
|
24 |
notify: restart miniflux service |
|
25 |
|
|
26 |
- name: install miniflux schema file |
|
27 |
become: yes |
|
28 |
template: |
|
29 |
src: "setup_db.psql.j2" |
|
30 |
dest: "/tmp/setup_db_miniflux.psql" |
|
31 |
owner: "postgres" |
|
32 |
group: "postgres" |
|
33 |
mode: "0600" |
|
34 |
|
|
35 |
- name: install pleroma psql |
|
36 |
become: yes |
|
37 |
become_user: "postgres" |
|
38 |
command: "psql -f /tmp/setup_db_miniflux.psql" |
|
39 |
changed_when: false |
|
40 |
|
|
41 |
- name: install systemd service |
|
42 |
become: yes |
|
43 |
copy: |
|
44 |
src: "miniflux.service" |
|
45 |
dest: "/lib/systemd/system/miniflux.service" |
|
46 |
owner: "root" |
|
47 |
group: "root" |
|
48 |
mode: "0755" |
|
49 |
notify: restart miniflux service |
|
50 |
|
|
51 |
- name: ensure service is started |
|
52 |
become: yes |
|
53 |
systemd: name="miniflux.service" enabled="yes" state="started" |