summaryrefslogtreecommitdiffstats
path: root/ansible_collections/inspur/sm/playbooks/modules/examples-clear_system_log.yml
blob: ff687eff2ddf4d826b25dbef97d56bca4610e15b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- 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 }}"