+ Docker based service hosts are now supported via the new ansible role
Usage of this role is still sketchy however at least all the required playbooks are in place Main issue at the moment is the interfacing with these playbooks
This commit is contained in:
parent
b7f779b34f
commit
08b05dbf55
41
aws/playbooks/tasks/docker/debian.yml
Normal file
41
aws/playbooks/tasks/docker/debian.yml
Normal file
@ -0,0 +1,41 @@
|
||||
---
|
||||
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 impish 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
|
||||
|
9
aws/playbooks/tasks/docker/main.yml
Normal file
9
aws/playbooks/tasks/docker/main.yml
Normal file
@ -0,0 +1,9 @@
|
||||
# This playbook is setup to install docker on debian based systems
|
||||
---
|
||||
- hosts: main
|
||||
tasks:
|
||||
- include_tasks: 'debian.yml'
|
||||
when:
|
||||
ansible_distribution: Debian
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
---
|
||||
# tasks file for playbooks
|
@ -1,3 +0,0 @@
|
||||
---
|
||||
- hosts: {{ main_host }}
|
||||
remote_user: {{ remote_user }}
|
Loading…
Reference in New Issue
Block a user