130
|
1 |
--- |
|
2 |
|
|
3 |
- name: add miniflux user |
|
4 |
become: yes |
174
|
5 |
user: name="miniflux" shell="/bin/false" system="yes" create_home="no" |
130
|
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 |
|
163
|
35 |
- name: install miniflux psql |
130
|
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 |
notify: restart miniflux service |
|
47 |
|
|
48 |
- name: ensure service is started |
|
49 |
become: yes |
|
50 |
systemd: name="miniflux.service" enabled="yes" state="started" |