Role system-sysctl-gateway: add small delay to sysctl startup

- sysctl starts to quick after modules-load and setting the nf_conntrack parameters fails
This commit is contained in:
Julian Labus 2018-02-23 19:34:30 +01:00
parent f5732aeb2a
commit dc72070628
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
2 changed files with 18 additions and 0 deletions

View file

@ -5,3 +5,19 @@
value: "{{ item.value }}"
state: present
with_items: "{{ sysctl_settings_gateway }}"
- 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

View file

@ -0,0 +1,2 @@
[Service]
ExecStartPre=/bin/sleep 3