2019-10-20 16:06:15 +01:00
|
|
|
- name: "Searx"
|
2019-05-27 12:56:29 +01:00
|
|
|
tags:
|
|
|
|
- searx
|
2019-05-29 19:27:47 +01:00
|
|
|
block:
|
2019-10-20 16:06:15 +01:00
|
|
|
- include: roles/common_server/tasks/docker.yaml
|
2019-05-29 19:27:47 +01:00
|
|
|
|
2019-10-20 16:06:15 +01:00
|
|
|
- name: "Searx: Config directory"
|
|
|
|
tags:
|
|
|
|
- install
|
2019-05-29 19:27:47 +01:00
|
|
|
file:
|
|
|
|
state: directory
|
2019-10-20 16:06:15 +01:00
|
|
|
path: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- "/srv/app/docker/searx"
|
|
|
|
- "/srv/app/docker/searx/config"
|
|
|
|
- "/srv/app/docker/searx/config/plugins"
|
|
|
|
- "/srv/app/docker/searx/config/engines"
|
2019-05-29 19:27:47 +01:00
|
|
|
become: yes
|
|
|
|
|
2019-10-20 16:06:15 +01:00
|
|
|
- name: "Searx: Config: main"
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
template:
|
|
|
|
dest: "/srv/app/docker/searx/config/settings.yml"
|
|
|
|
src: "templates/settings.yaml.j2"
|
|
|
|
mode: "0400"
|
2019-05-29 19:27:47 +01:00
|
|
|
become: yes
|
|
|
|
|
2019-10-20 16:06:15 +01:00
|
|
|
- name: "Searx: Config: overrides"
|
|
|
|
tags:
|
|
|
|
- config
|
2019-05-29 19:27:47 +01:00
|
|
|
copy:
|
2019-10-20 16:06:15 +01:00
|
|
|
dest: "/srv/app/docker/searx/config/{{ item }}/"
|
|
|
|
src: "files/{{ item }}/"
|
|
|
|
loop:
|
|
|
|
- "plugins"
|
|
|
|
- "engines"
|
2019-05-29 19:27:47 +01:00
|
|
|
become: yes
|
|
|
|
|
2019-10-20 16:06:15 +01:00
|
|
|
- name: "Searx: Docker: compose.yaml"
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
copy:
|
|
|
|
dest: "/srv/app/docker/searx/compose.yaml"
|
|
|
|
src: "files/docker-compose.yaml"
|
|
|
|
mode: "0400"
|
2019-05-29 19:27:47 +01:00
|
|
|
become: yes
|