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

5 years ago
---
- import_tasks: sysctl.yml
- import_tasks: bird-repos.yml
5 years ago
- import_tasks: bird2.yml
- include_tasks: wireguard.yml
loop: "{{ dn42_peers }}"
loop_control:
loop_var: "peer"
5 years ago
- name: Deploy Pingfinder
include_tasks: pingfinder.yml
when: dn42_pingfinder_enable
5 years ago
- 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 }}"
5 years ago
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