Make sysctl configuration path configurable

Defaults to /etc/sysctl.conf to retain current behavior

Change-Id: I76cc0d1fe550dbb3b8c790389dd0a84ca3674729
This commit is contained in:
Daniel 'f0o' Preussker 2025-01-19 08:14:06 +00:00
parent b1235fbfc6
commit 22b605abe4
2 changed files with 3 additions and 0 deletions

View File

@ -223,3 +223,5 @@ lxc_centos_package_key: "{{ _lxc_centos_package_key }}"
lxc_ubuntu_mirror: "{{ (ansible_facts['architecture'] == 'x86_64') | ternary('http://archive.ubuntu.com/ubuntu', 'http://ports.ubuntu.com/ubuntu-ports') }}"
lxc_apt_mirror: "{{ (ansible_facts['distribution'] == 'Ubuntu') | ternary(lxc_ubuntu_mirror, 'http://deb.debian.org/debian') }}"
lxc_sysctl_file: "{{ openstack_sysctl_file | default('/etc/sysctl.conf') }}"

View File

@ -79,6 +79,7 @@
name: "{{ item.key }}"
value: "{{ item.value }}"
sysctl_set: "{{ item.set | default('yes') }}"
sysctl_file: "{{ lxc_sysctl_file }}"
state: "{{ item.state | default('present') }}"
reload: "{{ item.reload | default('yes') }}"
failed_when: false