New server setup based on ubuntu

This commit is contained in:
Martin Bauer
2023-09-19 10:55:47 +02:00
parent 578be1a1cf
commit 7776095180
30 changed files with 240 additions and 186 deletions

View File

@@ -0,0 +1,38 @@
---
- name: Install required system packages
apt:
name:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools
state: latest
update_cache: true
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/debian {{ ansible_facts['distribution_release'] }} stable
state: present
- name: Update apt and install docker-ce
apt:
name:
- docker-ce
- docker-compose-plugin
state: latest
update_cache: true
- name: Add core to docker group
ansible.builtin.user:
name: core
groups: docker
append: true