Compare commits

..

No commits in common. "main" and "115-change-docker-root" have entirely different histories.

3 changed files with 10 additions and 33 deletions

View File

@ -1,3 +0,0 @@
---
skip_list:
- fqcn-builtins

View File

@ -1,17 +0,0 @@
galaxy_info:
author: Georg Krause
description: Ansible role to deploy docker-compose including docker on Debian
company: Progressivwerk
license: MIT
min_ansible_version: 2.1
galaxy_tags: []
platforms:
- name: Debian
versions:
- 10
dependencies: []

View File

@ -1,54 +1,51 @@
- name: Ensure packages are installed
become: true
check_mode: no
become: yes
apt:
name:
- python3-pip
- apt-transport-https
- ca-certificates
- curl
- gnupg
- gnupg-agent
- software-properties-common
state: present
- name: Trust dockers GPG key
become: true
become: yes
apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: Ensure docker repository is available
become: true
become: yes
apt_repository:
repo: deb https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable
repo: deb https://download.docker.com/linux/debian buster stable
state: present
# notify: Update apt cache
# - name: Flush handlers
# meta: flush_handlers
#- name: Flush handlers
# meta: flush_handlers
- name: Ensure packages are installed
become: true
become: yes
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-compose
- docker-compose-plugin
update_cache: true
update_cache: yes
state: present
- name: Install docker python module
become: true
become: yes
pip:
executable: pip3
name:
- docker
- name: Change docker root
become: true
become: yes
template:
src: templates/daemon.json.j2
dest: /etc/docker/daemon.json