Skip to main content
haroonh
New Member
October 1, 2020
Question

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

  • October 1, 2020
  • 1 reply
  • 4955 views

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, 

 

    1 reply

    brookz
    New Member
    April 8, 2021

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

    brookz
    New Member
    May 4, 2021

    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.