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.
 
 

28 righe
852 B

  1. ---
  2. - name: Check existence of matrix-dynamic-dns service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-dynamic-dns.service"
  5. register: matrix_dynamic_dns_service_stat
  6. - name: Ensure matrix-dynamic-dns is stopped
  7. service:
  8. name: matrix-dynamic-dns
  9. state: stopped
  10. daemon_reload: yes
  11. when: "matrix_dynamic_dns_service_stat.stat.exists"
  12. - name: Ensure matrix-dynamic-dns.service doesn't exist
  13. file:
  14. path: "{{ matrix_systemd_path }}/matrix-dynamic-dns.service"
  15. state: absent
  16. when: "matrix_dynamic_dns_service_stat.stat.exists"
  17. - name: Ensure systemd reloaded after matrix-dynamic-dns.service removal
  18. service:
  19. daemon_reload: yes
  20. when: "matrix_dynamic_dns_service_stat.stat.exists"
  21. # Intentionally not removing the Docker image when uninstalling.
  22. # We can't be sure it had been pulled by us in the first place.