Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to pass multiple hosts to ansible adhoc command?

ansible host_1 -m shell -a "docker stats -a --no-stream"; ansible host_2 -m shell -a "docker stats -a --no-stream"
 
PREVIOUS NEXT
Tagged: #pass #multiple #hosts #ansible #adhoc
ADD COMMENT
Topic
Name
2+2 =