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

44 строки
1.6 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 variables it would supply come
  9. # from molecule-shared/playbook-context.yml instead.
  10. - name: Include roles for matrix-reminder-bot Molecule tests
  11. hosts: all
  12. become: true
  13. vars_files:
  14. - "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/../../../molecule-shared/playbook-context.yml"
  15. gather_facts: true
  16. tasks:
  17. - name: Include roles for matrix-reminder-bot Molecule tests
  18. ansible.builtin.include_role:
  19. name: "{{ role_name }}"
  20. public: true
  21. loop:
  22. - com.devture.ansible.role.playbook_help
  23. - com.devture.ansible.role.systemd_docker_base
  24. - "custom/{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
  25. loop_control:
  26. loop_var: role_name
  27. # The role installs the unit but does not start it - in the playbook that is
  28. # `systemd_service_manager`'s job - so the scenario starts it here.
  29. - name: Ensure matrix-reminder-bot is started
  30. hosts: all
  31. become: true
  32. gather_facts: false
  33. tasks:
  34. - name: Ensure systemd daemon is reloaded
  35. ansible.builtin.systemd_service:
  36. daemon_reload: true
  37. - name: Ensure matrix-bot-matrix-reminder-bot systemd service is started
  38. ansible.builtin.systemd_service:
  39. name: matrix-bot-matrix-reminder-bot.service
  40. state: started