Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

37 Zeilen
1.4 KiB

  1. ---
  2. - name: Check existence of matrix-matrix_ldap_registration_proxy service
  3. ansible.builtin.stat:
  4. path: "{{ matrix_systemd_path }}/matrix-ldap-registration-proxy.service"
  5. register: matrix_matrix_ldap_registration_proxy_service_stat
  6. - name: Ensure matrix-matrix_ldap_registration_proxy is stopped
  7. ansible.builtin.service:
  8. name: matrix-matrix_ldap_registration_proxy
  9. state: stopped
  10. enabled: false
  11. daemon_reload: true
  12. register: stopping_result
  13. when: "matrix_matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
  14. - name: Ensure matrix-ldap-registration-proxy.service doesn't exist
  15. ansible.builtin.file:
  16. path: "{{ matrix_systemd_path }}/matrix-ldap-registration-proxy.service"
  17. state: absent
  18. when: "matrix_matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
  19. - name: Ensure systemd reloaded after matrix-ldap-registration-proxy.service removal
  20. ansible.builtin.service:
  21. daemon_reload: true
  22. when: "matrix_matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
  23. - name: Ensure Matrix matrix_ldap_registration_proxy paths don't exist
  24. ansible.builtin.file:
  25. path: "{{ matrix_matrix_ldap_registration_proxy_base_path }}"
  26. state: absent
  27. - name: Ensure matrix_ldap_registration_proxy Docker image doesn't exist
  28. docker_image:
  29. name: "{{ matrix_matrix_ldap_registration_proxy_docker_image }}"
  30. state: absent