first commit

main
Gasper Spagnolo 2022-09-25 22:05:25 +02:00
commit 465a83aacc
3 changed files with 60 additions and 0 deletions

3
creds.txt Normal file
View File

@ -0,0 +1,3 @@
KrknPGiD0E
user
83.212.127.142

2
inventory.yml Normal file
View File

@ -0,0 +1,2 @@
[okeanos_server]
faust.ad

55
playbook.yml Normal file
View File

@ -0,0 +1,55 @@
---
- name: Setup faustAD platform
hosts: okeanos_server
tasks:
- name: Update and upgrade system
apt:
name: '*'
state: latest
update_cache: yes
force_apt_get: yes
register: apt_update_status
- name: Remove packages not needed anymore
apt:
autoremove: yes
- name: Reboot when packages were updated
reboot:
post_reboot_delay: 60
when: apt_update_status.changed
- name: Install required packages for Docker
apt:
pkg:
- 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/ubuntu/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu focal 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