Ansible/Configs/01. Router/roles/tasks/main.yaml.md

61 lines
939 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

- name: Install Default Gateway IP {{ publicip }}
  pfsensible.core.pfsense_gateway:
      name: default_gw
      interface: wan
      gateway: "{{ publicip }}"
      state: present
- name: Set Default Route for Router
  pfsensible.core.pfsense_default_gateway:
      gateway: defaultgw4
      ipprotocol: inet
- name: Enable Interface vtnet0 (Gateway)
  pfsensible.core.interface:
      descr: wan
      interface: vtnet0
      interface_descr: wan
      ipv4_address: "10.10.10.2"
      ipv4_gateway: "10.10.10.1"
      ipv4_prefixlen: 28
      ipv4_type: static
- name: Enable Interface vtnet1 (Privat-Network)
  pfsensible.core.interface:
      descr: lan
      interface: vtnet1
      interface_descr: lan
      ipv4_address: {{ privat-network-gw }}
      ipv4_gateway: "10.10.10.2"
      ipv4_prefixlen: 24
      ipv4_type: static