+ Searx with all required configurations in place

This commit is contained in:
shockrah 2021-12-26 18:06:38 -08:00
parent 8d8e794257
commit 2d6d4e5dfc
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ infra/terraform.tfstate.backup
playbooks/hosts.ini
playbooks/.ssh/
playbooks/.env/
playbooks/alpha/searx/settings.yml

View File

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