Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

35 行
1.2 KiB

  1. ---
  2. - name: Ensure individual worker services are stopped
  3. service:
  4. name: "matrix-synapse-worker@{{ item.worker }}:{{ item.port }}.service"
  5. state: stopped
  6. with_items: "{{ matrix_synapse_workers_enabled_list }}"
  7. # As we cannot know the ports of workers removed from the enabled_list..
  8. # => .. just kill them all (FIXME?)
  9. - name: Ensure previous worker service symlinks are cleaned
  10. file:
  11. path: "{{ item.root + '/' + item.path }}"
  12. state: absent
  13. when:
  14. - item.state == 'link'
  15. - item.path is match('matrix-synapse-worker@*.service')
  16. with_filetree:
  17. - "{{ matrix_systemd_path }}/matrix-synapse.service.wants"
  18. - name: Ensure synapse worker base service file gets removed
  19. file:
  20. path: "{{ matrix_systemd_path }}/matrix-synapse-worker@.service"
  21. state: absent
  22. register: matrix_synapse_worker_systemd_service_result
  23. - name: Remove workers from synapse.wants list
  24. set_fact:
  25. matrix_synapse_systemd_wanted_services_list: "{{ matrix_synapse_systemd_wanted_services_list | reject('search', item) | list }}"
  26. with_items: "{{ matrix_synapse_workers_avail_list }}"
  27. - name: Ensure systemd noticed removal of worker service units
  28. service:
  29. daemon_reload: yes