Fixes #8: Document usage of docker-py with Ansible and this role.

This commit is contained in:
Jeff Geerling 2017-05-29 22:08:59 -05:00
parent 6506efd7cd
commit 1ba82d6510

View File

@ -35,15 +35,33 @@ Docker Compose installation options.
(Used only for RedHat/CentOS.) You can enable the Edge or Test repo by setting the respective vars to `1`. (Used only for RedHat/CentOS.) You can enable the Edge or Test repo by setting the respective vars to `1`.
## Use with Ansible (and `docker-py`)
Many users of this role wish to also use Ansible to then _build_ Docker images and manage Docker containers on the server where Docker is installed. In this case, you can easily add in `docker-py` using the `geerlingguy.pip` role:
```yaml
- hosts: all
vars:
pip_install_packages:
- name: docker-py
roles:
- geerlingguy.pip
- geerlingguy.docker
```
## Dependencies ## Dependencies
None. None.
## Example Playbook ## Example Playbook
```yaml
- hosts: all - hosts: all
roles: roles:
- geerlingguy.docker - geerlingguy.docker
```
## License ## License