Skip to content

Commit

Permalink
Update docker-py to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
atosatto committed Apr 15, 2020
1 parent 6ca6396 commit 5cbd922
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ State of the containerd service.
Version of docker-compose to be installed via python-pip.
When set to `""` the latest available version will be installed.

docker_py_package_name: "docker"

Name of the python-pip package providing docker-py

docker_py_package_version: ""

Version of the docker-py package to be installed.

docker_py_package_state: present

Installation state of the docker-py package.
Set it to 'latest' to upgrade the Docker CLI to the latest version.

docker_group_name: "docker"
docker_group_users:
- "{{ ansible_user }}"
Expand Down
14 changes: 14 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ containerd_service_enabled: "yes"
# By default, the latest available version will be installed.
docker_compose_version: ""

##
# Docker-py
##

# Name of the python-pip package providing docker-py
docker_py_package_name: "docker"

# Version of the docker-py package to be installed.
docker_py_package_version: ""

# Installation state of the docker-py package.
# Set it to 'latest' to upgrade the Docker CLI to the latest version.
docker_py_package_state: present

##
# Docker Users
##
Expand Down
5 changes: 3 additions & 2 deletions tasks/setup-docker-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

- name: Install docker-py.
pip:
name: docker-py
state: present
name: "{{ docker_py_package_name }}"
version: "{{ docker_py_package_version }}"
state: "{{ docker_py_package_state }}"
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
molecule==2.22.0
docker-py==1.10.6
docker==4.2.0

0 comments on commit 5cbd922

Please sign in to comment.