Merge "remove loop control when running include_role"
This commit is contained in:
commit
50a548df9a
@ -114,16 +114,22 @@
|
||||
systemd_BlockIOAccounting: true
|
||||
systemd_MemoryAccounting: true
|
||||
systemd_TasksAccounting: true
|
||||
systemd_services:
|
||||
- service_name: "{{ service_var.service_name }}"
|
||||
enabled: yes
|
||||
state: started
|
||||
execstarts: "{{ service_var.execstarts }}"
|
||||
execreloads: "{{ service_var.execreloads | default([]) }}"
|
||||
config_overrides: "{{ swift_service_defaults | combine(service_var.init_config_overrides) }}"
|
||||
with_items: "{{ filtered_swift_services }}"
|
||||
loop_control:
|
||||
loop_var: service_var
|
||||
systemd_services: |-
|
||||
{% set services = [] %}
|
||||
{% for service in filtered_swift_services %}
|
||||
{%
|
||||
set _ = service.update(
|
||||
{
|
||||
'enabled': 'yes',
|
||||
'state': 'started',
|
||||
'config_overrides': swift_service_defaults | combine(service.init_config_overrides)
|
||||
}
|
||||
)
|
||||
%}
|
||||
{% set _ = service.pop('init_config_overrides') -%}
|
||||
{% set _ = services.append(service) -%}
|
||||
{% endfor %}
|
||||
{{ services }}
|
||||
tags:
|
||||
- swift-config
|
||||
- systemd-service
|
||||
|
Loading…
Reference in New Issue
Block a user