0
0
opnxng-deploy-playbook/config-tasks/searxng.yaml

48 lines
1.2 KiB
YAML

- name: Generate JWT Secret
command: openssl rand -hex 32
register: searxng_jwt_secret_result
- set_fact:
searxng_jwt_secret: "{{ searxng_jwt_secret_result.stdout }}"
- name: Set up settings.yml
template:
src: "conf/settings.yml.j2"
dest: "{{ docker_dir }}/searxng/settings.yml"
owner: 1000
group: 1000
mode: 0755
- name: Set up replace-hosts.yml
template:
src: "conf/replace-hosts.yml.j2"
dest: "{{ docker_dir }}/searxng/replace-hosts.yml"
owner: 1000
group: 1000
mode: 0755
- name: Set up remove-hosts.yml
template:
src: "conf/remove-hosts.yml.j2"
dest: "{{ docker_dir }}/searxng/remove-hosts.yml"
owner: 1000
group: 1000
mode: 0755
- name: Copy donate.md
copy:
src: "searxng/donate.md"
dest: "{{ docker_dir }}/searxng/donate.md"
owner: 1000
group: 1000
mode: 0755
- name: Create valkey-data directory
ansible.builtin.file:
path: "{{ docker_dir }}/searxng/valkey-data"
state: directory
owner: 999
group: 1000
mode: 0755
become: true