- name: clear BMC system log test
  hosts: ism
  connection: local
  gather_facts: no
  vars:
    ism:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "clear BMC system log"
    inspur.sm.clear_system_log:
      level: "alert"
      provider: "{{ ism }}"

  - name: "clear BMC system log"
    inspur.sm.clear_system_log:
      level: "all"
      provider: "{{ ism }}"