Skip to content

Commit

Permalink
Register glusto public key in a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
deepshikhaaa committed Aug 30, 2019
1 parent a96382f commit 8b25e30
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jobs/scripts/glusto/setup-glusto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@
set_fact:
workspace: "{{ lookup('env', 'GLUSTO_WORKSPACE') }}"

- name: Get the glusto public key
command: cat /home/gluster/.ssh/glusto.pub
register: key
delegate_to: 127.0.0.1

- name: Add entries to authorized_keys
authorized_key:
user: root
state: present
key: "{{ lookup('file', '/home/gluster/.ssh/glusto.pub') }}"
authorized_key: user=root key=key.stdout

- hosts: gluster_nodes
tasks:
Expand Down

0 comments on commit 8b25e30

Please sign in to comment.