Skip to content

Commit

Permalink
add roles config
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanbekker authored Jun 14, 2018
1 parent 13525fb commit fba5c04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/copy-keys/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Copy Publick Key to Other Hosts
become: true
become_user: docker
copy:
src: /tmp/id_rsa.pub
dest: /tmp/id_rsa.pub
mode: 0644
- name: Append Public key in authorized_keys file
authorized_key:
user: docker
state: present
key: "{{ lookup('file', '/tmp/id_rsa.pub') }}"

0 comments on commit fba5c04

Please sign in to comment.