Compare commits

..

5 commits

2 changed files with 13 additions and 10 deletions

3
.ansible-lint Normal file
View file

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

View file

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