Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created May 25, 2016 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/11ce0a32bf272fbe91787645ad40dbb6 to your computer and use it in GitHub Desktop.
Save dmsimard/11ce0a32bf272fbe91787645ad40dbb6 to your computer and use it in GitHub Desktop.
for node in $(cico inventory 2>&1 |tail -n+5 |awk {'print $6'} |sort |tail -n+3)
do
if ssh $node "ls -al /etc/ansible/facts.d >/dev/null" &>/dev/null; then
cico inventory 2>&1 |grep " ${node} "
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment