Public Repository

Last pushed: 2 months ago
Short Description
Short description is empty for this repo.
Full Description

How to run

Let say playbook directory in /home/ansible/playbooks has structure

inventories/
   production/
      hosts.ini         
      group_vars/
         group1  
         group2  
      host_vars/
         hostname1 
         hostname2  
   testing/
      hosts.ini 
      group_vars/
         group1  
         group2      
      host_vars/
         testhost1   
         testhost2   
library/
filter_plugins/
site.yml
webservers.yml
dbservers.yml
roles/
    common/
    webtier/
    monitoring/
    fooapp/

Run ansible

$ docker run -it --rm -v /home/ansible/playbooks:/playbooks juniorh/ansible bash
$ docker run -it --rm -v /home/ansible/playbooks:/playbooks juniorh/ansible ansible host1 -i inventories/testing -m ping -u <user> -k
$ docker run -it --rm -v /home/ansible/playbooks:/playbooks juniorh/ansible ansible-playbook site.yml -i inventories/testing -vv
Docker Pull Command
Owner
juniorh