--- - name: Install quagga apt: name: quagga - name: Tweak sysctl for table size ansible.posix.sysctl: name: net.ipv6.route.max_size value: 500000 sysctl_set: yes - name: Setup Quagga configuration template: src: "{{ item }}.j2" dest: "/etc/quagga/{{ item.dest }}" mode: u=rw,g=r,o=r loop: - daemons.j2 - zebra.conf.j2 - bgpd.conf.j2 notify: - restart bgpd - restart zebra - name: enable+start bgpd and quagga service: name: "{{ item }}" state: started enabled: true loop: - bgpd.service - zebra.service ...