community.general.spectrum_model_attrs – Enforce a model’s attributes in CA Spectrum.¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.spectrum_model_attrs
.
New in version 2.5.0: of community.general
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.7
Parameters¶
Notes¶
Note
Tested on CA Spectrum version 10.4.2.0.189.
Model creation and deletion are not possible with this module. For that use community.general.spectrum_device instead.
Examples¶
- name: Enforce maintenance mode for modelxyz01 with a note about why
community.general.spectrum_model_attrs:
url: "http://oneclick.url.com"
username: "{{ oneclick_username }}"
password: "{{ oneclick_password }}"
name: "modelxyz01"
type: "Host_Device"
validate_certs: true
attributes:
- name: "isManaged"
value: "false"
- name: "Notes"
value: "MM set on {{ ansible_date_time.iso8601 }} via CO {{ CO }} by {{ tower_user_name | default(ansible_user_id) }}"
delegate_to: localhost
register: spectrum_model_attrs_status
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Tyler Gates (@tgates81)