Skip to content

Commit ac1f590

Browse files
author
Antonio Ettorre
committed
correct syntax error on ssh
1 parent f5c38c9 commit ac1f590

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ansible/cluster/oq_zmq.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,8 @@
130130
- name: execute ssh for first time with openquake user
131131
shell: |
132132
cd ~openquake
133-
ssh -t -v -i ~openquake/.ssh/id_rsa -o "StrictHostKeyChecking=no" "{{hostvars[item]['ansible_host']}}"
133+
ssh -v -l openquake -i ~openquake/.ssh/id_rsa -o StrictHostKeyChecking=no "{{hostvars[item]['ansible_host']}}" "hostname && echo 'Welcome!!!'"
134134
become: true
135135
become_user: openquake
136136
loop: "{{ groups['worker'] }}"
137137
register: ssh_connection
138-
139-
- name: check ssh connection std out
140-
debug: msg="{{ssh_connection.stdout_lines}}"

0 commit comments

Comments
 (0)