Skip to content

ansible-docker is a docker sandbox with amazonlinx(AWS ec2) and ansible in order to speed up devops coding.

License

Notifications You must be signed in to change notification settings

onophris/ansible-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-docker

ansible-docker is a docker sandbox with amazonlinx(AWS ec2) and ansible in order to speed up devops coding.

Usage

Install

git clone https://github.com/diegopacheco/ansible-docker.git
cd ansible-docker/
./ansible-docker.sh bake

Run

./ansible-docker.sh run
./ansible-docker.sh run
 [WARNING]: Found both group and host with same name: localhost

PLAY [127.0.0.1] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [git : ensure yum is updated] *********************************************
ok: [localhost]

TASK [git : ensure Git is present] *********************************************
ok: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=3    changed=0    unreachable=0    failed=0  

How to Add/Change Ansible?

Goto /src/main.yml and call your role. You role should be under /src/roles/.
There is a sample GIT role here: https://github.com/diegopacheco/ansible-docker/tree/master/src/roles/git/tasks

Linter

There is support for ansible-lint. Just do:

./ansible-docker.sh lint main.yml
./ansible-docker.sh lint main.yml
[ANSIBLE0017] become_user requires become to work as expected
/app/main.yml:3
{'become_user': {'hosts': '127.0.0.1', 'roles': ['git'], 'vars': {'myvar': 10, '__file__': '/app/main.yml', '__line__': 6}, 'become_user': 'root', '__file__': '/app/main.yml', '__line__': 3}}

[ANSIBLE0010] Package installs should not use latest
/app/roles/git/tasks/main.yml:3
Task/Handler: ensure yum is updated

About

ansible-docker is a docker sandbox with amazonlinx(AWS ec2) and ansible in order to speed up devops coding.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 52.0%
  • Shell 48.0%