|
|
@ -6,6 +6,24 @@
|
|
|
|
- vars.yml
|
|
|
|
- vars.yml
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create directory for volume mounting
|
|
|
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
|
|
|
path: /mnt/lotus-land-story/searxng
|
|
|
|
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
mode: "0700"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Write settings.xml
|
|
|
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
|
|
|
dest: /mnt/lotus-land-story/searxng/settings.yml
|
|
|
|
|
|
|
|
content: |
|
|
|
|
|
|
|
|
use_default_settings: true
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
|
|
|
secret_key: {{ searxng.secret_key }}
|
|
|
|
|
|
|
|
engines:
|
|
|
|
|
|
|
|
- name: brave
|
|
|
|
|
|
|
|
disabled: true
|
|
|
|
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get docker network
|
|
|
|
- name: Get docker network
|
|
|
|
community.docker.docker_network:
|
|
|
|
community.docker.docker_network:
|
|
|
|
name: lotus_land_story
|
|
|
|
name: lotus_land_story
|
|
|
@ -18,6 +36,8 @@
|
|
|
|
image: searxng/searxng:2024.1.17-7c80807bb
|
|
|
|
image: searxng/searxng:2024.1.17-7c80807bb
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
SEARXNG_BASE_URL: https://search.{{ domain }}
|
|
|
|
SEARXNG_BASE_URL: https://search.{{ domain }}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- /mnt/lotus-land-story/searxng/settings.yml:/etc/searxng/settings.yml
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
|
- name: lotus_land_story
|
|
|
|
- name: lotus_land_story
|
|
|
|