You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB
YAML

---
- import_tasks: sysctl.yml
- import_tasks: bird-repos.yml
- import_tasks: bird2.yml
- include_tasks: wireguard.yml
loop: "{{ dn42_peers }}"
loop_control:
loop_var: "peer"
- name: Deploy Pingfinder
include_tasks: pingfinder.yml
when: dn42_pingfinder_enable
- name: Download ROA-Tables
shell: "{{ dn42_roa_cronjob }}"
args:
creates: "{{ dn42_roa_v6_location }}"
when: "dn42_enable_roa"
- name: Install ROA-Cron-Job
cron:
name: Download ROA-Tables
minute: "*/15"
job: "{{ dn42_roa_cronjob }}"
when: "dn42_enable_roa"
- name: Configure Local IPs on loopback-interface
interfaces_file:
iface: "lo"
option: "up"
value: "{{ item }}"
state: present
with_items:
- "ip a add {{ dn42_local_v4 }}/32 dev lo"
- "ip a add {{ dn42_local_v6 }}/128 dev lo"
notify: restart networking
- name: Configure DN42 Table on loopback-interface
interfaces_file:
iface: "lo"
option: "post-up"
value: "{{ item }}"
state: present
with_items:
- "ip rule add table 42"
- "ip -6 rule add table 42"
when: dn42_configure_linux_network_table
notify: restart networking