From a4f9020a7ed82d45abb8183211f213127038b78a Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 26 Dec 2021 14:07:54 -0800 Subject: [PATCH] + Basic searx seutp --- playbooks/alpha/nginx.yml | 25 +++++++++++++++++++++++++ playbooks/alpha/searx/main.yml | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 playbooks/alpha/nginx.yml create mode 100644 playbooks/alpha/searx/main.yml diff --git a/playbooks/alpha/nginx.yml b/playbooks/alpha/nginx.yml new file mode 100644 index 0000000..ff9bd2a --- /dev/null +++ b/playbooks/alpha/nginx.yml @@ -0,0 +1,25 @@ +# This playbook just installs nginx so that it is ready to configure +# we don't bother with extra user accounts like with Beta because we +# are only concerned with using nginx to serve fully containerized +# applications. Not static files +--- +- hosts: alpha + tasks: + - name: Install Nginx + become: yes + apt: + name: nginx + update_cache: yes + state: present + + - name: Update Snap + become: yes + community.general.snap: + name: core + state: present + + - name: Install Certbot + community.general.snap: + name: certbot + classic: yes + diff --git a/playbooks/alpha/searx/main.yml b/playbooks/alpha/searx/main.yml new file mode 100644 index 0000000..253eae7 --- /dev/null +++ b/playbooks/alpha/searx/main.yml @@ -0,0 +1,15 @@ +--- +- hosts: alpha + remote_user: ubuntu + become: yes + tasks: + - name: Pull latest Searx Repo patches + community.docker.docker_container: + name: searx + image: searx/searx + pull: yes + restart_policy: always + recreate: yes + ports: + - "8080:8080" +