aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/opnsense.yml
blob: dd23a91091498434e0a5605ec477de80e1f89a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- name: configure opnsense firewall
  hosts: opnsense_firewalls
  gather_facts: yes
  vars:
    unbound_max_negative_cache: 5
  roles:
    - freebsd_loader
    - devd
    - pxe_server
  tasks:
    - name: set unbound negative ttl
      copy:
        content: |
          server:
          cache-max-negative-ttl: {{ unbound_max_negative_cache }}
        dest: /usr/local/etc/unbound.opnsense.d/custom.conf
      tags: unbound