|
|
|
@ -186,6 +186,7 @@
|
|
|
|
|
dest: "{{ pilab_users_path_systemd[pilab_services_user[_service_name]] }}/{{ pilab_services_service[_service_name] }}" |
|
|
|
|
|
|
|
|
|
- name: Ensure Services are Stopped |
|
|
|
|
when: ansible_service_mgr == 'systemd' |
|
|
|
|
loop: "{{ pilab_services_instances | default({}) | dict2items | map(attribute='value') | flatten(1) | unique }}" |
|
|
|
|
loop_control: |
|
|
|
|
loop_var: _instance_name |
|
|
|
@ -202,6 +203,7 @@
|
|
|
|
|
scope: user |
|
|
|
|
|
|
|
|
|
- name: Ensure Services are Started |
|
|
|
|
when: ansible_service_mgr == 'systemd' |
|
|
|
|
loop: "{{ pilab_services_instances | default({}) | dict2items | map(attribute='value') | flatten(1) | unique }}" |
|
|
|
|
loop_control: |
|
|
|
|
loop_var: _instance_name |
|
|
|
|