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



On Fri, 15 May 2020 at 10:41, Luis Arizaga <luis.ariz...@gmail.com> wrote:

> 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 received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/57d71d6b-20b2-4ef8-b592-f046183ae934%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/57d71d6b-20b2-4ef8-b592-f046183ae934%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwOWA5ouKz-%3DPpwan6KFqWPAMJz_VVnUucfEa0csAuY2Bw%40mail.gmail.com.

Reply via email to