ansible-ffibk/roles/system-sysctl/tasks/main.yml

24 lines
576 B
YAML
Raw Normal View History

2017-09-30 14:36:48 +02:00
---
- name: set freifunk sysctl settings
2017-09-30 14:36:48 +02:00
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
with_items: "{{ sysctl_settings }}"
- name: create systemd override dir for systemd-sysctl.service
file:
path: /etc/systemd/system/systemd-sysctl.service.d
state: directory
owner: root
group: root
mode: 0755
- name: configure systemd unit overrides
template:
src: systemd_sysctl_service_overrides.j2
dest: /etc/systemd/system/systemd-sysctl.service.d/override.conf
owner: root
group: root
mode: 0644