We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5c38c9 commit ac1f590Copy full SHA for ac1f590
ansible/cluster/oq_zmq.yaml
@@ -130,11 +130,8 @@
130
- name: execute ssh for first time with openquake user
131
shell: |
132
cd ~openquake
133
- ssh -t -v -i ~openquake/.ssh/id_rsa -o "StrictHostKeyChecking=no" "{{hostvars[item]['ansible_host']}}"
+ ssh -v -l openquake -i ~openquake/.ssh/id_rsa -o StrictHostKeyChecking=no "{{hostvars[item]['ansible_host']}}" "hostname && echo 'Welcome!!!'"
134
become: true
135
become_user: openquake
136
loop: "{{ groups['worker'] }}"
137
register: ssh_connection
138
-
139
- - name: check ssh connection std out
140
- debug: msg="{{ssh_connection.stdout_lines}}"
0 commit comments