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:
parent
f5732aeb2a
commit
dc72070628
2 changed files with 18 additions and 0 deletions
|
@ -5,3 +5,19 @@
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: "{{ sysctl_settings_gateway }}"
|
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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/bin/sleep 3
|
Loading…
Reference in a new issue