Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created March 14, 2018 00:49
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 harlowja/3c5441200990e5b7d3d000d88f802178 to your computer and use it in GitHub Desktop.
Save harlowja/3c5441200990e5b7d3d000d88f802178 to your computer and use it in GitHub Desktop.
- name: deploy SSH keys from topology to boxes
hosts: all
gather_facts: false
vars:
ssh_keys: "{{ lookup('file', '../envs/keys.yaml') | from_yaml }}"
tasks:
- authorized_key:
user: "{{ ansible_user }}"
key: "{{ item.kind }} {{ item.value }} {{ item.user }}@godaddy.com"
with_items: "{{ ssh_keys }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment