Created
March 14, 2018 00:49
-
-
Save harlowja/3c5441200990e5b7d3d000d88f802178 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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