updated docker install procedure as per doc pages

This commit is contained in:
Radar231 2023-05-16 14:30:29 -04:00
parent 7efb625d3e
commit efd8056033
1 changed files with 7 additions and 16 deletions

View File

@ -104,6 +104,7 @@
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
state: present
when: ansible_os_family == "Debian"
@ -122,22 +123,12 @@
enabled: true
############################################################
# using the pip3 command rather than the pip ansible module
# because ansible can get in a weird state depending on the
# python version used on the target host
- name: Install docker python package
shell:
cmd: pip3 install docker
############################################################
- name: Install docker-compose
shell:
cmd: curl -L "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
############################################################
- name: Set permissions on /usr/local/bin/docker-compose
- name: Create symlink for docker-compose
file:
path: /usr/local/bin/docker-compose
mode: "0755"
src: /usr/libexec/docker/cli-plugins/docker-compose
dest: /usr/local/bin/docker-compose
owner: root
group: root
state: link
# EOF