all changes to make it work on Debian
This commit is contained in:
parent
392014dbd8
commit
3f9bac7f35
3 changed files with 8 additions and 17 deletions
roles/docker/tasks
|
@ -8,11 +8,12 @@
|
|||
- python3-pip
|
||||
- name: Add Docker APT key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
keyring: /etc/apt/keyrings/docker.gpg
|
||||
url: https://download.docker.com/linux/debian/gpg
|
||||
state: present
|
||||
- name: Add Docker repository
|
||||
apt_repository:
|
||||
repo: "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
||||
repo: "deb https://download.docker.com/linux/debian bullseye stable"
|
||||
state: present
|
||||
register: apt_repository
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
|
@ -30,6 +31,10 @@
|
|||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
- name: Create /etc/docker directory
|
||||
file:
|
||||
path: "/etc/docker"
|
||||
state: directory
|
||||
- name: Copy daemon.json
|
||||
copy:
|
||||
src: "{{ role_path }}/files/daemon.json"
|
||||
|
|
Reference in a new issue