+ Scripts to setup packaging on alpha+beta and UFW

This commit is contained in:
shockrah
2021-11-25 16:34:51 -08:00
parent 38a8e79744
commit 15b9a84d64
3 changed files with 55 additions and 0 deletions

46
playbooks/alpha/init.yml Normal file
View File

@@ -0,0 +1,46 @@
---
- hosts: alpha
remote_user: ubuntu
tasks:
- name: Install docker dependencies
become: yes
become_method: sudo
apt:
name: "{{item}}"
update_cache: yes
loop:
- apt-transport-https
- ca-certificates
- curl
- gnupg
- software-properties-common
- lsb-release
- name: Install docker GPG key
become: yes
become_method: sudo
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker Apt Repo
become: yes
become_method: sudo
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu/gpg buster stable
state: present
- name: Install Docker components
become: yes
become_method: sudo
apt:
name: "{{item}}"
update_cache: yes
loop:
- docker-ce
- docker-ce-cli
- containerd.io