Add service priorities - try to stop/start them in an optimal order

This commit is contained in:
Slavi Pantaleev
2022-11-23 08:43:46 +02:00
parent 0ea7cb5d18
commit 360e643f84
8 changed files with 123 additions and 86 deletions

View File

@@ -2,6 +2,6 @@
- name: Ensure Matrix services stopped
ansible.builtin.service:
name: "{{ item }}"
name: "{{ item.name }}"
state: stopped
with_items: "{{ matrix_systemd_services_list }}"
with_items: "{{ matrix_systemd_services_list | sort (attribute='priority,name', reverse=true) }}"