main.yml 552 B

1234567891011121314151617181920212223
  1. ---
  2. - name: Confiogure static IPv6 route
  3. uci:
  4. command: section
  5. config: network
  6. type: route6
  7. section: "{{ item.name }}"
  8. value: "{{ item.route }}"
  9. loop: "{% if routes.ipv6 is defined %}{{ routes.ipv6 }}{% else %}[]{% endif %}"
  10. notify:
  11. - Save changes
  12. - name: Confiogure static IPv4 route
  13. uci:
  14. command: section
  15. config: network
  16. type: route
  17. section: "{{ item.name }}"
  18. value: "{{ item.route }}"
  19. loop: "{% if routes.ipv4 is defined %}{{ routes.ipv4 }}{% else %}[]{% endif %}"
  20. notify:
  21. - Save changes