2023-11-06 10:39:27 +08:00
|
|
|
- name: Generate JWT Secret
|
|
|
|
command: openssl rand -hex 32
|
2024-06-08 00:05:13 +08:00
|
|
|
register: searxng_jwt_secret_result
|
2023-11-06 10:39:27 +08:00
|
|
|
|
|
|
|
- set_fact:
|
2024-06-08 00:05:13 +08:00
|
|
|
searxng_jwt_secret: "{{ searxng_jwt_secret_result.stdout }}"
|
2023-11-06 10:39:27 +08:00
|
|
|
|
2024-06-08 00:05:13 +08:00
|
|
|
- name: Set up settings.yml
|
2023-11-06 10:39:27 +08:00
|
|
|
template:
|
2023-11-14 19:35:34 +08:00
|
|
|
src: "conf/settings.yml.j2"
|
2024-06-08 00:05:13 +08:00
|
|
|
dest: "{{ docker_dir }}/searxng/settings.yml"
|
2023-11-06 10:39:27 +08:00
|
|
|
owner: 1000
|
|
|
|
group: 1000
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Copy donate.md
|
|
|
|
copy:
|
2024-06-08 00:05:13 +08:00
|
|
|
src: "searxng/donate.md"
|
|
|
|
dest: "{{ docker_dir }}/searxng/donate.md"
|
2023-11-06 10:39:27 +08:00
|
|
|
owner: 1000
|
|
|
|
group: 1000
|
2023-11-14 19:35:34 +08:00
|
|
|
mode: 0755
|
2023-11-29 06:49:58 +08:00
|
|
|
|
2024-05-20 19:00:26 +08:00
|
|
|
- name: Create valkey-data directory
|
2023-11-29 06:49:58 +08:00
|
|
|
ansible.builtin.file:
|
2024-06-08 00:05:13 +08:00
|
|
|
path: "{{ docker_dir }}/searxng/valkey-data"
|
2023-11-29 06:49:58 +08:00
|
|
|
state: directory
|
|
|
|
owner: 999
|
|
|
|
group: 1000
|
|
|
|
mode: 0755
|
2024-05-20 19:00:26 +08:00
|
|
|
become: true
|