Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 535 Bytes
# In development, create an account for the currently logged-in user, and
# copy their public key to the server. This makes it possible to run other
# playbooks without specifying a user or private key on the command line.
- name: ensure local user is synced
state: present
name: "{{ lookup('env', 'USER') }}"
shell: /bin/bash
groups: sudo
register: user
- name: ensure the local user's public key is synced
user: "{{ }}"
key: "{{ lookup('file', '~/.ssh/') }}"