Mastodon Remove Role¶
Safely removes the Mastodon deployment, systemd units, and related configuration with confirmation gates.
Usage¶
- hosts: mastodon
become: true
roles:
- role: local.ops_library.mastodon_remove
vars:
mastodon_confirm_removal: true
mastodon_remove_site: true
mastodon_remove_media: false
Key Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
Must be set to |
|
|
Remove the application directory. |
|
|
Remove local media directory. |
|
|
Remove the nginx config file. |
|
|
Remove nginx log directory. |
|
|
Remove nginx logrotate configuration. |
|
|
Remove the service user and group. |
See defaults/main.yml and roles/mastodon_shared/defaults/main.yml for the full reference.
Dependencies¶
local.ops_library.mastodon_shared
Testing¶
cd /path/to/ops-library
just test-role mastodon_remove
License¶
MIT