Skip to content

Minimal Docker image with ansible, ansible-lint, mitogen and more to come

License

Notifications You must be signed in to change notification settings

bergalath/ansible-full

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Docker image with

Usage

Considering the example folder

project
  ├── Makefile
  ├── facts
  │   ├── logs
  │   │   ├── log_files
  │   │   └── …
  │   ├── host_facts
  │   └── …
  ├── playbook
  ┊   ├── roles
      │   ├── role_1
      │   ├── role_2
      │   └── …
      ├── .gitignore
      ├── ansible.cfg
      ├── hosts.ini
      └── main.yml

Then this command will run your Playbook, in check mode by default, in a new container

docker run -it --rm -v ./playbook:/playbook -v ./facts:/facts -v $SSH_AUTH_SOCK:/run/ssh-agent \
  bergalath/ansible-full:2.17-5 ansible-playbook ./main.yml --check --diff

Yeah, it’s a bit tedious, so take a look at this minimal Makefile

Happy Ansiblin’ with mitogen speed !

Ansible 2.16 (9.7.0) image

Another image, bergalath/ansible-full:2.16, is availabe with