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 SMTP modules (smtp, smtp_info) for US10. #93

Closed anazobec closed 1 year ago

anazobec commented 1 year ago

Added SMTP modules for US10:

Example usages are:

# ---------- Module smtp
- name: Modify SMTP configuration without authentication
  scale_computing.hypercore.smtp:
    server: smtp-relay.gmail.com
    port: 25
    use_ssl: False
    requires_auth: False
    from_address: example@example.com

- name: Modify SMTP configuration with authentication
  scale_computing.hypercore.smtp:
    server: smtp-relay.gmail.com
    port: 25
    use_ssl: False
    requires_auth: True
    username: example
    password: example123
    from_address: example@example.com

- name: Modify SMTP configuraiton with required params only
  scale_computing.hypercore.smtp:
    server: smtp-relay.gmail.com
    port: 25

# ---------- Module smtp_info
- name: List SMTP Configuration
  scale_computing.hypercore.smtp_info:
  register: smtp_info
- ansible.builtin.debug:
    msg: "{{ smtp_info }}"