# Ansible for netwoking: Fortios BGP module, incremental configurations

**URL:** <https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936>\
**Category:** Ansible Project\
**Created:** [May 15, 2020, 8:40am UTC](https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936 "2020-05-15T08:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Arizaga](https://avatars.discourse-cdn.com/v4/letter/l/ecd19e/32.png) [@Luis\_Arizaga](https://forum.ansible.com/u/Luis_Arizaga)\
**Post date:** [May 15, 2020, 8:40am UTC](https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936/1 "2020-05-15T08:40:52Z")

</div>

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](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](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

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 15, 2020, 9:17am UTC](https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936/2 "2020-05-15T09:17:59Z")

</div>

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