feat(setup-reverse-proxy.yml): install of certbot and nginx
This commit is contained in:
25
playbooks/setup-reverse-proxy.yml
Normal file
25
playbooks/setup-reverse-proxy.yml
Normal 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
|
||||
Reference in New Issue
Block a user