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

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

fortios_system_global timezone not working with FortiOS 7.4.2 and higher #306

Closed connect-cloud closed 6 months ago

connect-cloud commented 6 months ago

https://github.com/fortinet-ansible-dev/ansible-galaxy-fortios-collection/blob/44771120d0868cde6a24f8a280920f9733bbc8a4/plugins/modules/fortios_system_global.py#L1631

From FortiOS 7.4.2 the configuration of the timezone in the global system config is not done with numbers anymore but whith a timezone string e.g. 'Europe/Amsterdam' but the fortios_system_global.py module does not allow this configuration.

My playbook:

    - name: Fortigate global config version > 7.4.2
      fortios_system_global:
        system_global:
          timezone: "Europe/Amsterdam"
      when: fortigate_version is version("7.4.2",'>')
JieX19 commented 6 months ago

Hi @connect-cloud

The latest version in the Ansible colletion is 7.4.1, and the timezone type is changed from int to string, which is not supported yet. version 7.4.2 and 7.4.3 will be added in the upcoming release.

JieX19 commented 6 months ago

Hi @connect-cloud

Thank you very much for your patience! version 2.3.6 was released this week, please install the latest version and try this module again!

I will close this ticket as it's already fixed it this version. feel free to reopen it or open a new issue if you have any questions!

Thanks, Jie

connect-cloud commented 6 months ago

Hi @JieX19 It's fixed! Many thanks