Update check_passwordless_ssh.yml
set_fact:
ssh_status: true
when:
+ - ssh_output.stderr is defined
+ - ssh_output.stdout is defined
- "'Permission denied' not in ssh_output.stderr"
- ssh_output.stdout | length > 2
- name: Set passwordless ssh when ssh_status is false - "{{ current_host }}"
include_tasks: set_passwordless_ssh.yml
- when: not ssh_status
\ No newline at end of file
+ when:
+ - ssh_output.stderr is defined
+ - ssh_output.stdout is defined
+ - not ssh_status
