Make sysctl configuration path configurable
Defaults to /etc/sysctl.conf to retain current behavior Change-Id: I76cc0d1fe550dbb3b8c790389dd0a84ca3674729
This commit is contained in:
parent
b1235fbfc6
commit
22b605abe4
@ -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') }}"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user