Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
664 B

  1. ---
  2. - name: Check existence of matrix-mx-puppet-groupme service
  3. ansible.builtin.stat:
  4. path: "/etc/systemd/system/matrix-mx-puppet-groupme.service"
  5. register: matrix_mx_puppet_groupme_service_stat
  6. - when: matrix_mx_puppet_groupme_service_stat.stat.exists | bool
  7. block:
  8. - name: Ensure matrix-mx-puppet-groupme is stopped
  9. ansible.builtin.service:
  10. name: matrix-mx-puppet-groupme
  11. state: stopped
  12. enabled: false
  13. daemon_reload: true
  14. - name: Ensure matrix-mx-puppet-groupme.service doesn't exist
  15. ansible.builtin.file:
  16. path: "/etc/systemd/system/matrix-mx-puppet-groupme.service"
  17. state: absent