Sign inSign up

sdesbure/ansible

By sdesbure

Updated over 7 years ago

ansible into a docker (used for CI)

Image
0

10K+

sdesbure/ansible repository overview

Ansible Docker

ansible - https://www.ansible.com

Latest ansbile release in pip embedded into this docker.

Used to perform ansible playbooks into gitlab ci runner.

Status

Codeship: Codeship Status for sdesbure/docker_ansible

Docker image

How to use

Pull image
docker pull sdesbure/ansible

Run container

Per default, the docker will give you the version number of ansible.

If you want to launch a playbook, you'll have to run a specific command:

docker run --rm -v <path for playbook folder>:/playbooks sdesbure/ansible ansible-playbook yourplaybook.yaml

In gitlab ci runner

Here's an example of a working configuration (that have a deploy stage):

ansible:
  stage: deploy
  image: sdesbure/ansible
  script:
    - ansible-playbook -i inventory myplaybook.yaml

Tag summary

Content type

Image

Digest

Size

398.5 MB

Last updated

over 7 years ago

docker pull sdesbure/ansible