Ansible for netwoking: Fortios BGP module, incremental configurations

Hi,

I’m a network engineer. I want to use Ansible in order to provision some routers and firewalls in my company for diferent tasks/projects. I started testing with some Fortinet Firewalls we have. I encountered a problem using a module to configure BGP. The problem is not related to how to use the module but to Ansible’s behaviour. Maybe it just that I have to get used to Ansible philosophy but I wanted to ask the question. This is the issue:

Everytime I want to push something to the Firewall the precedent configuration has to be in the playbook I run otherwise Ansible will erase the previous configuration that I pushed and only insert the new one. What I wanted to do is to configure devices incrementally to avoid having a huge playbook with all the information but several playbooks related to the project that every person on the team is doing. That way everybody will be creating their playbooks following kind of a template (just changing variables actually, that’s the aim) and injecting configurations progressively. Is there a way to do that?

I’m using ansible 2.9. This is the FortiOs module I’m using:

https://docs.ansible.com/ansible/latest/modules/fortios_router_bgp_module.html#fortios-router-bgp-module

And here’s my playbook:
https://gist.github.com/luchoArg33/28c41bbc449b43bc670f6f62040e9e6c

Any information, document, page, anything that could help me resolve or understand this issue would be great for me. Thanks for your time!!!

Cheers,
Luis

You could use different vars files for your teams and use them or merge them when you deploy the device