emielmolenaar / ansible-role-docker-python-sdk

An Ansible role to install the Python docker SDK on APT compatible hosts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Docker SDK role for Ansible

A simple role for installing the Python Docker SDK on your APT-enabled hosts using Ansible. This ensures Ansible's docker modules will operate on your hosts.

Usage

This role uses APT to ensure the required packages on your hosts. Any other package manager is not supported for now.

Clone this repo into your roles directory:

$ git clone https://github.com/emielmolenaar/ansible-role-docker-python-sdk.git roles/docker-python-sdk

And add it to your play's roles:

- hosts: ...
  roles:
    - docker-python-sdk
    - ...

I recommend using a requirements.yml in your roles directory though:

- src: https://github.com/emielmolenaar/ansible-role-docker-python-sdk.git
  name: docker-python-sdk

Installing the role will require a ansible-galaxy install -r ./roles/requirements.yml -p ./roles from the root directory of your playbook.

About

An Ansible role to install the Python docker SDK on APT compatible hosts