Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 2.03 KB

README.md

File metadata and controls

57 lines (44 loc) · 2.03 KB

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