Make sysctl configuration path configurable
Defaults to /etc/sysctl.conf to retain current behavior Change-Id: Ie78ccc10bd129bccdd21b4b8e95e51a7f47d9e2f
This commit is contained in:
parent
f97af47301
commit
b46f4809c8
@ -412,3 +412,5 @@ security_contrib_enabled: no
|
|||||||
# DANGER: SYSTEM. This will cause downtime for any services that depend on
|
# DANGER: SYSTEM. This will cause downtime for any services that depend on
|
||||||
# DANGER: IPv6 network connectivity.
|
# DANGER: IPv6 network connectivity.
|
||||||
security_contrib_disable_ipv6: no # C-00001
|
security_contrib_disable_ipv6: no # C-00001
|
||||||
|
|
||||||
|
security_sysctl_file: "{{ openstack_sysctl_file | default('/etc/sysctl.conf') }}"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
state: "{{ item.enabled | ternary('present', 'absent') }}"
|
state: "{{ item.enabled | ternary('present', 'absent') }}"
|
||||||
|
sysctl_file: "{{ security_sysctl_file }}"
|
||||||
reload: yes
|
reload: yes
|
||||||
when:
|
when:
|
||||||
- item.enabled | bool
|
- item.enabled | bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user