First implementation

This commit is contained in:
Cyrille Nofficial
2020-02-07 13:38:30 +01:00
parent 3c23a1b8b0
commit f552ec5209
30 changed files with 1656 additions and 0 deletions

View File

@ -0,0 +1,35 @@
- name: Add apt key
apt_key:
url: https://download.docker.com/linux/debian/gpg
- name: Add docker-ce repository
apt_repository:
repo: deb [arch={{ arch | default('armhf') }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable
state: present
filename: 'docker'
- meta: flush_handlers
- name: Install docker-ce
apt:
name:
- python-pip
- docker-ce
- xfsprogs
state: present
- name: Set groups to pi user
user:
name: pi
groups: docker
- meta: flush_handlers
- name: Install ansible tool docker and docker-compose
pip:
name:
- docker-compose
executable: pip3

View File

@ -0,0 +1,4 @@
---
- include_tasks: docker.yml