ansible / ansible.builtin / v2.9.4 / module / purefa_smtp Configure FlashArray SMTP settings | "added in version" 2.9 of ansible.builtin" Authors: Pure Storage ansible Team (@sdodsley) <pure-ansible-team@purestorage.com> preview | supported by communityansible.builtin.purefa_smtp (v2.9.4) — module
pip
Install with pip install ansible==2.9.4
Set or erase configuration for the SMTP settings.
If username/password are set this will always force a change as there is no way to see if the password is different from the current SMTP configuration.
Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>
- name: Delete existing SMTP settings purefa_smtp: state: absent fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592
- name: Set SMTP settings purefa_smtp: sender_domain: purestorage.com password: account_password user: smtp_account relay_host: 10.2.56.78:2345 fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592
user: description: - The SMTP username. type: str state: choices: - absent - present default: present description: - Set or delete SMTP configuration type: str fa_url: description: - FlashArray management IPv4 address or Hostname. required: true type: str password: description: - The SMTP password. type: str api_token: description: - FlashArray API token for admin privileged user. required: true type: str relay_host: description: - IPv4 or IPv6 address or FQDN. A port number may be appended. type: str sender_domain: description: - Domain name. type: str