- name: user test hosts: ism connection: local gather_facts: F vars: ism: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: get user information inspur.sm.user_info: provider: "{{ ism }}"