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.
 
 

32 righe
1015 B

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