diff --git a/jobs/scripts/glusto/setup-glusto.yml b/jobs/scripts/glusto/setup-glusto.yml index 8c7d95b..96d06aa 100644 --- a/jobs/scripts/glusto/setup-glusto.yml +++ b/jobs/scripts/glusto/setup-glusto.yml @@ -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: