2019-05-29 19:27:47 +01:00
|
|
|
- name: 'Searx'
|
2019-05-27 12:56:29 +01:00
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- searx
|
2019-05-29 19:27:47 +01:00
|
|
|
block:
|
|
|
|
- name: 'Searx: package'
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: latest
|
|
|
|
become: yes
|
|
|
|
loop:
|
|
|
|
- uwsgi
|
|
|
|
- uwsgi-plugin-python3
|
|
|
|
|
|
|
|
- name: 'Searx: Config directory'
|
|
|
|
file:
|
|
|
|
state: directory
|
2019-09-11 15:50:34 +01:00
|
|
|
path: '/srv/app/searx/searx'
|
2019-05-29 19:27:47 +01:00
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: 'Searx: Config'
|
|
|
|
copy:
|
2019-09-11 15:50:34 +01:00
|
|
|
dest: '/srv/app/searx/searx/settings.yml'
|
2019-05-29 19:27:47 +01:00
|
|
|
src: 'files/settings.yaml'
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: 'Searx: UWSGI integration'
|
|
|
|
copy:
|
|
|
|
dest: '/etc/uwsgi/apps-available/searx.ini'
|
|
|
|
src: 'files/uwsgi.ini'
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: 'Searx: UWSGI enable'
|
|
|
|
file:
|
|
|
|
dest: '/etc/uwsgi/apps-enabled/searx.ini'
|
|
|
|
src: '/etc/uwsgi/apps-available/searx.ini'
|
|
|
|
state: link
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: 'Searx: UWSGI service'
|
|
|
|
systemd:
|
|
|
|
name: 'uwsgi'
|
|
|
|
state: started
|
|
|
|
become: yes
|