Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

31 righe
924 B

  1. ---
  2. - name: Check existence of matrix-registration service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-registration.service"
  5. register: matrix_registration_service_stat
  6. - name: Ensure matrix-registration is stopped
  7. service:
  8. name: matrix-registration
  9. state: stopped
  10. daemon_reload: yes
  11. register: stopping_result
  12. when: "matrix_registration_service_stat.stat.exists|bool"
  13. - name: Ensure matrix-registration.service doesn't exist
  14. file:
  15. path: "{{ matrix_systemd_path }}/matrix-registration.service"
  16. state: absent
  17. when: "matrix_registration_service_stat.stat.exists|bool"
  18. - name: Ensure systemd reloaded after matrix-registration.service removal
  19. service:
  20. daemon_reload: yes
  21. when: "matrix_registration_service_stat.stat.exists|bool"
  22. - name: Ensure matrix-registration Docker image doesn't exist
  23. docker_image:
  24. name: "{{ matrix_registration_docker_image }}"
  25. state: absent