Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ansible select inventory file to adhoc command

# Use flag -i and the path to the inventory. 
ansible all -i=/etc/ansible/[your_inventory] -m ping
 
PREVIOUS NEXT
Tagged: #ansible #select #inventory #file #adhoc #command
ADD COMMENT
Topic
Name
9+6 =