- name: eventlog info test hosts: ism connection: local gather_facts: no vars: ism: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "get event log information" inspur.sm.event_log_info: log_time: "2020-06-01T12:30+08:00" provider: "{{ ism }}" - name: "get event log information" inspur.sm.event_log_info: count: 30 provider: "{{ ism }}" - name: "get event log information" inspur.sm.event_log_info: event_file: "/home/wbs/wbs.log" provider: "{{ ism }}"