Nae_compliance: ability to activate/disactivate requirement_set (Expose 'active' attribute as parameter)
Closed this issue · 4 comments
When you now play nae_compliance for a new requirement_set, it activates it by default on the AG and there is no possibility to only configure the set without activating it.
Since you can only have 3 sets active at the same time, it would be handy to just configure your set without activating it.
The module supported parameters are: ag_name, description, form, host, name, password, port, selector, state, username, validate_certs".
The form only contains the name and the list of requirements
{
"name": "Segmentation_Set",
"requirements": [
"Segmentation_req1",
"Segmentation_req2"
]
}
Thanks!
@itommasi I think we merged this change this week and @xinyuezhao is in the process of releasing the new NAE version which contains it. See
ansible-nae/plugins/modules/nae_compliance.py
Line 105 in 5347d3e
If you want to test it, you can use this update process: https://github.com/CiscoDevNet/ansible-mso#update
Just replace all the mso mentions by NAE. We should add this to the README here too.
We might need to update the documentation of the module though as I can't find those argument. @xinyuezhao do you know where the doc is for the active parameter?
@lhercot we actually have the update process documented here already ;)
https://github.com/CiscoDevNet/ansible-nae#testing-latest-code
Thank you! Just installed the new collection and tested successfully. Issue/enhancement is resolved to me.