Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

32 строки
1.3 KiB

  1. ---
  2. - name: Ensure Conduit Docker image is pulled
  3. docker_image:
  4. name: "{{ matrix_conduit_docker_image }}"
  5. source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
  6. force_source: "{{ matrix_conduit_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
  7. force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_conduit_docker_image_force_pull }}"
  8. register: result
  9. retries: "{{ matrix_container_retries_count }}"
  10. delay: "{{ matrix_container_retries_delay }}"
  11. until: result is not failed
  12. - name: Ensure Conduit configuration installed
  13. template:
  14. src: "{{ role_path }}/templates/conduit/conduit.toml.j2"
  15. dest: "{{ matrix_conduit_config_dir_path }}/conduit.toml"
  16. mode: 0644
  17. owner: "{{ matrix_user_username }}"
  18. group: "{{ matrix_user_groupname }}"
  19. - name: Ensure matrix-conduit.service installed
  20. template:
  21. src: "{{ role_path }}/templates/conduit/systemd/matrix-conduit.service.j2"
  22. dest: "{{ matrix_systemd_path }}/matrix-conduit.service"
  23. mode: 0644
  24. register: matrix_conduit_systemd_service_result
  25. - name: Ensure systemd reloaded after matrix-conduit.service installation
  26. service:
  27. daemon_reload: true
  28. when: "matrix_conduit_systemd_service_result.changed|bool"