moan0s / matrix-registration-bot

A bot that is used to create and manage registration tokens for a matrix server
GNU Affero General Public License v3.0
67 stars 10 forks source link

Uninstall with ansible #10

Open moan0s opened 2 years ago

moan0s commented 2 years ago

The ansible roles could also provide a uninstall role that is triggered bymatrix-registration-bot-enabled=false. In the main.yml it would look like this:

- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
  when: "run_setup|bool and not matrix_registration_bot_enabled|bool"
  tags:
    - setup-all
    - setup-matrix-registration-bot
moan0s commented 2 years ago

The matrix-docker-ansible-deploy has this functionality