- hosts: demo gather_facts: no tasks: - name: Verify account ansible.builtin.ping: become: no vars: ansible_user: "{{ account.username }}" ansible_password: "{{ account.secret }}" ansible_ssh_private_key_file: "{{ account.private_key_path }}" ansible_become: no