Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
haroonh
New Contributor

appending address object in the fortigate address group using ansible/automation

Hi,

 

I am looking to append an address in the address group of fortigate appliance using ansible , I have used the module called fortios_firewall_addrgrp but it adds the new address in and deletes the old one,

 

could somebody please advise a way I could keep the existing addresses and then add a new one. I want to do this remotely in an automated manner.

 

please help in this if you can 

Kind Regards, 

 

2 REPLIES 2
brookz
New Contributor

I'm also looking to do this... were you able to make any progress?

brookz
New Contributor

haroonh,

 

It doesn't appear to be an option in Ansible... that said, I found a python module for fortimanager that does allow it... You can create address objects with all the relevant details, add them to a group and install the policy afterward. 

 

https://pypi.org/project/pyFortiManagerAPI/

 

It's incredibly fast. Best of luck. 

Labels
Top Kudoed Authors