- hosts: custom gather_facts: no vars: ansible_connection: local ansible_become: false tasks: - name: Verify account (paramiko) ssh_ping: login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" login_user: "{{ account.username }}" login_password: "{{ account.secret }}" login_secret_type: "{{ account.secret_type }}" login_private_key_path: "{{ account.private_key_path }}" become: "{{ custom_become | default(False) }}" become_method: "{{ custom_become_method | default('su') }}" become_user: "{{ custom_become_user | default('') }}" become_password: "{{ custom_become_password | default('') }}" become_private_key_path: "{{ custom_become_private_key_path | default(None) }}"