oleg.vodyanov91@gmail.com e96be5f6f7 add_nginx_basic_auth
2025-04-23 13:11:50 +04:00

39 lines
842 B
YAML

---
- name: Install required system packages
apt:
pkg:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools
- python3-certbot-nginx
- apache2-utils
state: latest
update_cache: true
- block:
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu jammy stable
state: present
- name: Update apt and install docker-ce
apt:
name: docker-ce
state: latest
update_cache: true
- name: Install Docker Module for Python
pip:
name: docker
tags:
- docker