ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

Add Us11 email alert modules (email_alert, email_alert_info) #99

Closed anazobec closed 1 year ago

anazobec commented 1 year ago

Added email alert modules (email_alert, email_alert_info)

Examples usages:

- name: Create a new Email Alert Recipient
  scale_computing.hypercore.email_alert:
    email: example@example.com
    state: present

- name: Update previously create Email Alert Recipient
  scale_computing.hypercore.email_alert:
    email: example@example.com
    email_new: new@example.com
    state: present

- name: Remove previously updated Email Alert Recipient
  scale_computing.hypercore.email_alert:
    email: new@example.com
    state: absent

- name: Send test email to an Email Alert Recipient
  scale_computing.hypercore.email_alert:
    email: recipient@example.com
    state: test

# ---- info
- name: Retrieve al recipients
  scale_computing.hypercore.email_alert_info:
  register: info
- ansible.builtin.debug:
    msg: "{{ info.records }}"