Skip to content

Commit

Permalink
Fix ssh check failing whole playbook
Browse files Browse the repository at this point in the history
RE #98
  • Loading branch information
cailafinn committed Sep 25, 2024
1 parent c53c0b4 commit c04fb33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
mode: '0755'

- name: Check if machine has SSH access to the main data store.
ansible.builtin.command: ssh {{ main_server_user }}@{{ main_server_hostname }} 'echo success'
ansible.builtin.command: ssh -o BatchMode=True root@{{ main_server_hostname }} 'echo success'
register: connected
ignore_errors: True

- name: Exchange SSH keys with linode so we can access the data.
import_tasks: exchange-keys.yml
Expand Down

0 comments on commit c04fb33

Please sign in to comment.