ansible.builtin.purefa_alert (v2.9.27) — module

Configure Pure Storage FlashArray alert email settings

| "added in version" 2.9 of ansible.builtin"

Authors: Simon Dodsley (@sdodsley)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Configure alert email configuration for Pure Storage FlashArrays.

Add or delete an individual syslog server to the existing list of serves.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add new email recipient and enable, or enable existing email
  purefa_alert:
    address: "user@domain.com"
    enabled: true
    state: present
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete existing email recipient
  purefa_alert:
    state: absent
    address: "user@domain.com"
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

Inputs

    
state:
    choices:
    - absent
    - present
    default: present
    description:
    - Create or delete alert email
    type: str

fa_url:
    description:
    - FlashArray management IPv4 address or Hostname.
    required: true
    type: str

address:
    description:
    - Email address (valid format required)
    required: true
    type: str

enabled:
    default: true
    description:
    - Set specified email address to be enabled or disabled
    type: bool

api_token:
    description:
    - FlashArray API token for admin privileged user.
    required: true
    type: str