Skip to content

Instantly share code, notes, and snippets.

@kenperkins
Created February 20, 2015 06:11
Show Gist options
  • Save kenperkins/c82a166f07b65b204014 to your computer and use it in GitHub Desktop.
Save kenperkins/c82a166f07b65b204014 to your computer and use it in GitHub Desktop.
- name: General | Create authorized_keys for {{ server_user }}
authorized_key: user="{{ server_user }}" key="{{ lookup('file', '/tmp/' + item + '.keys') }}"
with_items: ssh_users
tags: user
- name: General | Create authorized_keys for {{ staging_user }}
authorized_key: user="{{ staging_user }}" key="{{ lookup('file', '/tmp/' + item + '.keys') }}"
with_items: ssh_users
tags: user
- name: General | Create authorized_keys for {{ dist_user }}
authorized_key: user="{{ dist_user }}" key="{{ lookup('file', '/tmp/' + item + '.keys') }}"
with_items: ssh_users
tags: user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment