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

GNU General Public License v3.0
84 stars 48 forks source link

fortinet.fortios.fortios_firewall_addrgrp & json input #344

Closed chr00ted closed 3 weeks ago

chr00ted commented 4 weeks ago

Hello, I'm looking to add a group to other groups and I was wondering if I could use JSON for it. When I try it seems to fail, am I doing this right or should I change anything. Thanks in advance!

FYI: vdom = root & nname is my group name: TEST-GRP-NEW

` - name: Read groups from JSON set_fact: site_groups: "{{ lookup('file', 'site_groups.json') | from_json }}"

site_groups.json (I have more groups to add to the JSON provided it works: [ "US - All Sites", "Remote Networks - FTL" ]

chr00ted commented 3 weeks ago

I'm thinking it has to deal with the group names having spaces

MaxxLiu22 commented 3 weeks ago

Hi @chr00ted ,

Thank you for bringing this issue to our attention. I was able to reproduce the problem and have noted that Ansible FOS currently restricts the use of spaces in URLs. However, it should accommodate them. I have reported this to the development team for resolution. I sincerely apologize for any inconvenience this may have caused.

Thanks, Maxx

chr00ted commented 3 weeks ago

Cool, thanks @MaxxLiu22