Properly render sysctl-container

Inside jinja block variables should not be inside start/end block.
This used to work due to the workaround placed in config_template
that was removed within [1]. So we fix our usage of jinja to make
variable resolved properly.

[1] https://review.opendev.org/c/openstack/ansible-config_template/+/881887

Change-Id: I1c3178e5694b08ace9364f6da397837049ca2d49
This commit is contained in:
Dmitriy Rabotyagov 2023-05-19 11:38:28 +02:00
parent 4903bac1f7
commit d2a3a22a58
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ _lxc_container_systemd_services: |
'service_type': 'oneshot',
'state': 'started',
'enabled': True,
'execstarts': '{{ sysctl_path }}/sysctl -p',
'execstarts': sysctl_path ~ '/sysctl -p',
'after_targets': ['systemd-modules-load.service'],
'config_overrides': {
'Unit': {