Skip to content

oliosien/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example ansible commands

If you test groups node from inventory you can execute:

$ ansible -i hosts.yml intesys --list-hosts

We can execute a single module by command line:

$ ansible -i hosts.yml javadev -m shell -a "ls -la" -u eoliosi [-vvv for verbose]

If we are in a playbook context, we can choose a better way to execute more tasks using ansible-playbook command:

$ ansible-playbook -i hosts.yml playbook.yml [-k for ask password or -K for becoming sudo]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published