Skip to content

Instantly share code, notes, and snippets.

@rothgar
Created October 24, 2013 05:37

Revisions

  1. rothgar created this gist Oct 24, 2013.
    3 changes: 3 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ###Deploy SSH key to ansible inventory###

    for server in $(ansible --list-hosts all); do ssh-copy-id -i ~/.ssh/id_rsa.pub $server; done