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

42 строки
1.5 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # The devture base roles carry the variables this role reads
  6. # (`devture_systemd_docker_base_*`, `devture_playbook_help_*`), the same way
  7. # they do when the playbook runs. `matrix-base` is deliberately NOT included:
  8. # it does far more than this role needs, and the two variables it would supply
  9. # are set directly in molecule.yml instead.
  10. - name: Include roles for matrix-alertmanager-receiver Molecule tests
  11. hosts: all
  12. become: true
  13. gather_facts: true
  14. tasks:
  15. - name: Include roles for matrix-alertmanager-receiver Molecule tests
  16. ansible.builtin.include_role:
  17. name: "{{ role_name }}"
  18. public: true
  19. loop:
  20. - com.devture.ansible.role.playbook_help
  21. - com.devture.ansible.role.systemd_docker_base
  22. - "custom/{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
  23. loop_control:
  24. loop_var: role_name
  25. # The role installs the unit but does not start it - in the playbook that is
  26. # `systemd_service_manager`'s job - so the scenario starts it here.
  27. - name: Ensure matrix-alertmanager-receiver is started
  28. hosts: all
  29. become: true
  30. gather_facts: false
  31. tasks:
  32. - name: Ensure systemd daemon is reloaded
  33. ansible.builtin.systemd_service:
  34. daemon_reload: true
  35. - name: Ensure matrix-alertmanager-receiver systemd service is started
  36. ansible.builtin.systemd_service:
  37. name: matrix-alertmanager-receiver.service
  38. state: started