fortinet-ansible-dev / ansible-galaxy-fortios-collection

GNU General Public License v3.0
85 stars 49 forks source link

List of check_mode supported modules #311

Open an-st5 opened 5 months ago

an-st5 commented 5 months ago

Hello All I would like to know if there is a list which indicates the support of check_mode for the possible specific fortinet.fortios modules? Unfortunately i was not able to locate/find the information in the documentation.

Version used 2.3.6

Problem faced: I was not able to use check mode with fortinet.fortios.fortios_system_global (error msg indicates it is not supported). However the playbook itself is working properly when executed without check_mode.

Add. info Check_mode itself is very important regarding our internal requirements. We would like to combine it with diff for config review purposes.

Many thanks for your help

Best Regards an-st5

MaxxLiu22 commented 4 months ago

Hi @an-st5 ,

Thank you for raising this issue. I have reported it to the development team, and they will provide a way to indicate which module will be supported with the check_mode function. Additionally, the latest Ansible FOS check_mode feature has an issue that may be causing a problem #309 . We will fix that soon as well.

Thanks, Maxx

MaxxLiu22 commented 4 months ago

Hi @an-st5 ,

I just received a list of modules that support the check mode feature. For now, you can use it temporarily, and we will note that information in our documentation soon. check_mode_modules.json

Thanks, Maxx

MaxxLiu22 commented 2 months ago

Hi @dominicfillmore ,

We just released Ansible FOS 2.3.7. This issue should be fixed, so you could upgrade to it and give it a try at your convenience. and we also improve our DOC to introduce check mode function, for modules that support check mode function, we add a note at Notes section image

ansible-galaxy collection install fortinet.fortios:2.3.7

Thanks, Maxx