From 2d6d4e5dfc4542a9f8813120b077764532fb6d0b Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 26 Dec 2021 18:06:38 -0800 Subject: [PATCH] + Searx with all required configurations in place --- .gitignore | 1 + playbooks/alpha/searx/main.yml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1c19f42..0796cf8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ infra/terraform.tfstate.backup playbooks/hosts.ini playbooks/.ssh/ playbooks/.env/ +playbooks/alpha/searx/settings.yml diff --git a/playbooks/alpha/searx/main.yml b/playbooks/alpha/searx/main.yml index 253eae7..7350034 100644 --- a/playbooks/alpha/searx/main.yml +++ b/playbooks/alpha/searx/main.yml @@ -3,6 +3,21 @@ remote_user: ubuntu become: yes tasks: + - name: Create /var/www/ Configuration Directory + file: + path: /var/www/ + state: directory + + - name: Create /var/www/searx/ Searx configuration Directory + file: + path: /var/www/searx + state: directory + + - name: Copy Searx Configuration to /var/www/searx + copy: + src: settings.yml + dest: /var/www/searx/settings.yml + - name: Pull latest Searx Repo patches community.docker.docker_container: name: searx @@ -10,6 +25,7 @@ pull: yes restart_policy: always recreate: yes + volumes: + - "/var/www/searx/settings.yml:/etc/searx/settings.yml" ports: - "8080:8080" -