+ Setting up new playbook for a lab server
This commit is contained in:
39
docker-host/setup/tasks/install-docker.yml
Normal file
39
docker-host/setup/tasks/install-docker.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install docker dependencies
|
||||
apt:
|
||||
name: "{{item}}"
|
||||
update_cache: yes
|
||||
loop:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg
|
||||
- software-properties-common
|
||||
- lsb-release
|
||||
|
||||
- name: Install docker GPG key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
state: present
|
||||
|
||||
- name: Add Docker Apt Repo
|
||||
apt_repository:
|
||||
repo: deb https://download.docker.com/linux/ubuntu impish stable
|
||||
state: present
|
||||
|
||||
- name: Install Docker components
|
||||
apt:
|
||||
name: "{{item}}"
|
||||
update_cache: yes
|
||||
loop:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
6
docker-host/setup/tasks/main.yml
Normal file
6
docker-host/setup/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
#
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
tasks:
|
||||
- name: Say hi
|
||||
command: echo hi
|
||||
10
docker-host/setup/tasks/system-update.yml
Normal file
10
docker-host/setup/tasks/system-update.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Simply update all required packages that we have on the system
|
||||
# This also takes care of updating any packages that must updated through means
|
||||
# of Git or some other non-apt method should it be required
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Distribution Upgrade
|
||||
apt:
|
||||
upgrade: dist
|
||||
Reference in New Issue
Block a user