feat(setup-reverse-proxy.yml): install of certbot and nginx

This commit is contained in:
Lenoctambule
2026-03-10 20:46:27 +01:00
parent 0390901233
commit 237153d02b
3 changed files with 28 additions and 2 deletions

View File

@@ -1 +1,2 @@
- import_playbook: ./playbooks/install-docker.yml
# - import_playbook: ./playbooks/install-docker.yml
- import_playbook: ./playbooks/setup-reverse-proxy.yml

View File

@@ -54,7 +54,7 @@
- docker-compose-plugin
force: true
- name: Add ubuntu user to docker group
- name: Install
ansible.builtin.user:
name: "{{ ansible_user_id }}"
groups: docker

View File

@@ -0,0 +1,25 @@
- name: Setting up reverse proxy and load balancer
hosts: hosts
become: true
tasks:
- name: Install Certbot and Nginx
block:
- name: Installing Python3 and PIP
ansible.builtin.apt:
state: present
update_cache: yes
pkg:
- nginx
- python3-pip
- python3
- python3-dev
- python3-venv
- libaugeas-dev
- gcc
- name: Installing Certbot
ansible.builtin.pip:
name:
- certbot
- certbox-nginx