Showing
1 changed file
with
12 additions
and
0 deletions
playbooks/authkey.yml
0 → 100644
1 | +# add auth key from local file to remote user | ||
2 | +--- | ||
3 | +- hosts: search-service | ||
4 | + remote_user: root | ||
5 | + tasks: | ||
6 | + - name: deliver authorized_keys | ||
7 | + authorized_key: | ||
8 | + user: root | ||
9 | + key: "{{ lookup('file', '/home/ansible/yoho-ansible-roles/search.pub') }}" | ||
10 | + state: present | ||
11 | + exclusive: no | ||
12 | + |
-
Please register or login to post a comment