Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Last active January 22, 2019 13:40
Show Gist options
  • Save richardsonlima/384fcbeb3201278a9731495dcd77d3cf to your computer and use it in GitHub Desktop.
Save richardsonlima/384fcbeb3201278a9731495dcd77d3cf to your computer and use it in GitHub Desktop.
cat inventory/hosts.ini|awk '{print substr($2,14);}'
for host in $(cat inventory/hosts.ini|awk '{print substr($2,14);}');
do echo -e '\033[1;32m [+] host \033[0m'$host && ssh-copy-id user@$host;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment