Merge "Avoid looping systemd_service role include"
This commit is contained in:
commit
76e2010ad1
@ -45,15 +45,19 @@
|
||||
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 }}"
|
||||
config_overrides: "{{ service_var.init_config_overrides }}"
|
||||
with_items: "{{ keystone_services.values() | list }}"
|
||||
loop_control:
|
||||
loop_var: service_var
|
||||
systemd_services: |
|
||||
{%- set services = [] -%}
|
||||
{%- for service in keystone_services.values() | list -%}
|
||||
{%- set _ = service.update({
|
||||
'enabled': 'yes',
|
||||
'state': 'started',
|
||||
'config_overrides': service.init_config_overrides
|
||||
})
|
||||
-%}
|
||||
{%- set _ = service.pop('init_config_overrides') -%}
|
||||
{%- set _ = services.append(service) -%}
|
||||
{%- endfor %}
|
||||
{{- services -}}
|
||||
tags:
|
||||
- keystone-config
|
||||
- systemd-service
|
||||
|
Loading…
Reference in New Issue
Block a user