weareinteractive.docker_compose
is an Ansible role which:
- installs docker-compose
Using ansible-galaxy
:
$ ansible-galaxy install weareinteractive.docker_compose
Using requirements.yml
:
- src: weareinteractive.docker_compose
Using git
:
$ git clone https://github.com/weareinteractive/ansible-docker-compose.git weareinteractive.docker_compose
- Ansible >= 2.4
- installed docker i.e. with weareinteractive.docker_compose
Note:
Since Ansible Galaxy switched all role names to the organization name, this role has moved from
franklinkim.docker-compose
toweareinteractive.docker_compose
!
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
---
# version
docker_compose_version:
# dependencies e.g. python3-pip
docker_compose_packages:
- python-pip
# pip executable e.g. pip3
docker_compose_pip_executable: pip
This is an example playbook:
---
- hosts: all
become: yes
roles:
- weareinteractive.docker
- weareinteractive.docker_compose
vars:
docker_compose_version: 1.21.0
docker_compose_pip_version: pip #pip==9.0.3
$ git clone https://github.com/weareinteractive/ansible-docker-compose.git
$ cd ansible-docker-compose
$ make test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Note: To update the README.md
file please install and run ansible-role
:
$ gem install ansible-role
$ ansible-role docgen
Copyright (c) We Are Interactive under the MIT license.