solved mastodon bugs and optimized discourse

This commit is contained in:
2025-02-22 16:30:53 +01:00
parent 657918c96e
commit 64f8b56e2d
3 changed files with 23 additions and 5 deletions

View File

@@ -2,12 +2,18 @@
# @see https://chatgpt.com/share/67b9b12c-064c-800f-9354-8e42e6459764
- name: Remove line containing "- administrator" from config/settings.yml to allow creating administrator account
shell: docker compose exec -u root web sed -i '/- administrator/d' config/settings.yml
command:
cmd: "docker compose exec -u root web sed -i '/- administrator/d' config/settings.yml"
chdir: "{{docker_compose.directories.instance}}"
when: administrator_username == "administrator"
- name: Create admin account via tootctl
shell: 'docker compose exec -u root web bash -c "RAILS_ENV=production bin/tootctl accounts create {{administrator_username}} --email {{administrator_email}} --confirmed --role Owner"'
command:
cmd: 'docker compose exec -u root web bash -c "RAILS_ENV=production bin/tootctl accounts create {{administrator_username}} --email {{administrator_email}} --confirmed --role Owner"'
chdir: "{{docker_compose.directories.instance}}"
ignore_errors: true
- name: Approve the administrator account in Mastodon
shell: docker compose exec -u root web bash -c "RAILS_ENV=production bin/tootctl accounts modify {{administrator_username}} --approve"
command:
cmd: docker compose exec -u root web bash -c "RAILS_ENV=production bin/tootctl accounts modify {{administrator_username}} --approve"
chdir: "{{docker_compose.directories.instance}}"