Files
Ansible/Configs/01. Router/roles/tasks/main.yaml.md
T
2024-05-08 12:57:42 +02:00

61 lines
939 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- 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