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" -