Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
1.1 KiB

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