aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/networkd.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/space_server/tasks/networkd.yml b/roles/space_server/tasks/networkd.yml
index 95ec4b0..305996b 100644
--- a/roles/space_server/tasks/networkd.yml
+++ b/roles/space_server/tasks/networkd.yml
@@ -30,4 +30,34 @@
state: absent
with_items: "{{ networkd_existing.files|map(attribute='path')|map('basename')|difference(networkd_created.results|map(attribute='item')|map('basename'))|list }}"
+- name: Install network-sysctl@.service
+ copy:
+ dest: '/etc/systemd/system/network-sysctl@.service'
+ src: 'network-sysctl@.service'
+ owner: root
+ group: root
+ mode: 0644
+
+- name: Enable network-sysctl@.service
+ systemd:
+ name: 'network-sysctl@{{ item }}.service'
+ enabled: yes
+ masked: no
+ when: not chroot
+ with_items:
+ - wan
+ - locix
+- name: '- when in chroot'
+ command:
+ argv:
+ - 'systemctl'
+ - 'enable'
+ - 'network-sysctl@{{ item }}.service'
+ args:
+ creates: '/etc/systemd/system/sys-devices-virtual-net-{{ item }}.device.wants/network-sysctl@{{ item }}.service'
+ when: chroot
+ with_items:
+ - wan
+ - locix
+
# vim: set ts=2 sw=2 et: