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

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

system_global\edit vdom_mode does not work #198

Closed oswinfox closed 2 years ago

oswinfox commented 2 years ago

Hello all,

I tried on a fotigate F100 (FortiOS 6.4.9) to enable the multi-vdom as follow in my playbook:

   - name: Configure global attributes.
     fortios_system_global:
        vdom:  "{{ vdom }}"
        access_token: "EXAMPLE"
        system_global:
            vdom_mode: "multi-vdom"

But I got this error from Ansible:

"Unsupported parameters for (fortios_system_global) module: system_global.vdom_mode. Supported parameters include: system_global, vdom, access_token."

It seems like this option is not working anymore, can someone help me please?

Kind regards

MaxxLiu22 commented 2 years ago

Hi @oswinfox ,

Thank you for raising this issue, this error msg means there is no argument "vdom_mode" under system_global. On my side, I use fortinet.fortios:2.1.7 collection, everything works well. my suggestion is run ansible-galaxy collection list you can check the current fortios collection version you use, and run ansible-galaxy collection install fortinet.fortios:2.1.7 to download the latest fortios version.

Thanks, Maxx

oswinfox commented 2 years ago

Hello @MaxxLiu22,

Thanks for replying, indeed when I use fortinet.fortios:2.1.7 the option does work with my fortigate F100!

Kind regards, Oswin