ansible / ansible.builtin / v2.9.27 / module / manageiq_alert_profiles Configuration of alert profiles for ManageIQ | "added in version" 2.5 of ansible.builtin" Authors: Elad Alfassa (@elad661) <ealfassa@redhat.com> preview | supported by communityansible.builtin.manageiq_alert_profiles (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
The manageiq_alert_profiles module supports adding, updating and deleting alert profiles in ManageIQ.
- name: Add an alert profile to ManageIQ manageiq_alert_profiles: state: present name: Test profile resource_type: ContainerNode alerts: - Test Alert 01 - Test Alert 02 manageiq_connection: url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' validate_certs: False
- name: Delete an alert profile from ManageIQ manageiq_alert_profiles: state: absent name: Test profile manageiq_connection: url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' validate_certs: False
name: description: - The unique alert profile name in ManageIQ. - Required when state is "absent" or "present". notes: description: - Optional notes for this profile state: choices: - absent - present default: present description: - absent - alert profile should not exist, - present - alert profile should exist, alerts: description: - List of alert descriptions to assign to this profile. - Required if state is "present" resource_type: choices: - Vm - ContainerNode - MiqServer - Host - Storage - EmsCluster - ExtManagementSystem - MiddlewareServer description: - The resource type for the alert profile in ManageIQ. Required when state is "present". manageiq_connection: description: - ManageIQ connection configuration information. required: false suboptions: ca_cert: aliases: - ca_bundle_path description: - The path to a CA bundle file or directory with certificates. defaults to None. type: str password: description: - ManageIQ password. C(MIQ_PASSWORD) env var if set. otherwise, required if no token is passed in. type: str token: description: - ManageIQ token. C(MIQ_TOKEN) env var if set. otherwise, required if no username or password is passed in. type: str url: description: - ManageIQ environment url. C(MIQ_URL) env var if set. otherwise, it is required to pass it. required: false type: str username: description: - ManageIQ username. C(MIQ_USERNAME) env var if set. otherwise, required if no token is passed in. type: str validate_certs: aliases: - verify_ssl default: true description: - Whether SSL certificates should be verified for HTTPS requests. defaults to True. type: bool type: dict