Compare commits
1 commit
8c9cbef657
...
bd09681025
| Author | SHA1 | Date | |
|---|---|---|---|
| bd09681025 |
7 changed files with 4 additions and 28 deletions
|
|
@ -1,5 +1,4 @@
|
|||
systemd_networkd__config_dir: 'resources/chaosknoten/router/systemd_networkd/'
|
||||
systemd_networkd__global_config: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/router/systemd_networkd_global_config.conf') }}"
|
||||
nftables__config: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/router/nftables/nftables.conf') }}"
|
||||
ansible_pull__timer_on_calendar: "*-*-* 04:00:00 Europe/Berlin"
|
||||
ansible_pull__timer_randomized_delay_sec: 0min
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ Name=net1
|
|||
|
||||
[Network]
|
||||
DNS=212.12.50.158
|
||||
IPForward=ipv4
|
||||
IPv6AcceptRA=no
|
||||
|
||||
[Address]
|
||||
|
|
@ -10,3 +11,4 @@ Address=212.12.48.123/24
|
|||
|
||||
[Route]
|
||||
Gateway=212.12.48.55
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ Name=net2
|
|||
|
||||
[Network]
|
||||
#DNS=212.12.50.158
|
||||
IPForward=ipv6
|
||||
IPv6AcceptRA=no
|
||||
|
||||
[Address]
|
||||
|
|
@ -10,3 +11,4 @@ Address=2a00:14b0:4200:3500::130:2/112
|
|||
|
||||
[Route]
|
||||
Gateway=2a00:14b0:4200:3500::130:1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
[Network]
|
||||
IPv4Forwarding=true
|
||||
IPv6Forwarding=true
|
||||
|
|
@ -9,8 +9,3 @@ Should work on Debian-based distributions.
|
|||
## Required Arguments
|
||||
|
||||
- `systemd_networkd__config_dir`: Directory with systemd-networkd configs to deploy.
|
||||
|
||||
## Optional Arguments
|
||||
|
||||
- `systemd_networkd__global_config`: systemd-networkd global configuration to deploy (see `man 5 networkd.conf`).
|
||||
Defaults to `` (the empty string);
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
systemd_networkd__global_config: ""
|
||||
|
|
@ -12,21 +12,3 @@
|
|||
recursive: true
|
||||
delete: true
|
||||
become: true
|
||||
|
||||
- name: ensure global systemd-networkd config directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/etc/systemd/networkd.conf.d"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: ensure global systemd-networkd config is deployed
|
||||
ansible.builtin.copy:
|
||||
content: "{{ systemd_networkd__global_config }}"
|
||||
dest: "/etc/systemd/networkd.conf.d/20-ansible.conf"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue