first commit
commit
465a83aacc
|
@ -0,0 +1,2 @@
|
|||
[okeanos_server]
|
||||
faust.ad
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue