Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/redfish/redfish_event_subscription.yml

raw symbols SCIP
1 ---
2 - name: Configure Redfish subscriptions
3 hosts: redfish
4 gather_facts: false
5
6 tasks:
7 - name: Add Redfish metric subscription
8 dellemc.openmanage.redfish_event_subscription:
9 baseuri: "{{ baseuri }}"
10 username: "{{ username }}"
11 password: "{{ password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 destination: "https://192.168.1.100:8188"
14 event_type: MetricReport
15 event_format_type: MetricReport
16 state: present
17 tags: add_metric_subscription
18 delegate_to: localhost
19
20 - name: Add Redfish alert subscription
21 dellemc.openmanage.redfish_event_subscription:
22 baseuri: "{{ baseuri }}"
23 username: "{{ username }}"
24 password: "{{ password }}"
25 ca_path: "/path/to/ca_cert.pem"
26 destination: "https://server01.example.com:8188"
27 event_type: Alert
28 event_format_type: Event
29 state: present
30 tags: add_alert_subscription
31 delegate_to: localhost
32
33 - name: Delete Redfish subscription with a specified destination
34 dellemc.openmanage.redfish_event_subscription:
35 baseuri: "{{ baseuri }}"
36 username: "{{ username }}"
37 password: "{{ password }}"
38 ca_path: "/path/to/ca_cert.pem"
39 destination: "https://server01.example.com:8188"
40 state: absent
41 tags: delete_subscription
42 delegate_to: localhost