Created
August 2, 2017 05:27
-
-
Save mrlesmithjr/afefbc00688e7038dac2bb9a131d1242 to your computer and use it in GitHub Desktop.
This file contains 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
--- | |
_ssh_keys_distribution: | |
{% for host in play_hosts %} | |
- host: '{{ host }}' | |
keys: | |
{% for _keys in hostvars[host]['_ssh_pub_key']['results'] %} | |
- user: '{{ _keys['item'] }}' | |
key: '{{ _keys['stdout'] }}' | |
{% endfor %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment