commit 465a83aacc6844dfb35ca36d4bc655228448fd70 Author: Gasper Spagnolo Date: Sun Sep 25 22:05:25 2022 +0200 first commit diff --git a/creds.txt b/creds.txt new file mode 100644 index 0000000..8b1e3b6 --- /dev/null +++ b/creds.txt @@ -0,0 +1,3 @@ +KrknPGiD0E +user +83.212.127.142 diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..a696006 --- /dev/null +++ b/inventory.yml @@ -0,0 +1,2 @@ +[okeanos_server] +faust.ad diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..d2d77a3 --- /dev/null +++ b/playbook.yml @@ -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 +