Optimized mastodon create administrator

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-27 18:12:02 +02:00
parent cd2f5f8717
commit da89bb6ed1
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -11,7 +11,12 @@
command:
cmd: 'docker compose exec -u root web bash -c "RAILS_ENV=production bin/tootctl accounts create {{users.administrator.username}} --email {{users.administrator.email}} --confirmed --role Owner"'
chdir: "{{docker_compose.directories.instance}}"
ignore_errors: true
register: tootctl_create
changed_when: tootctl_create.rc == 0
failed_when: >
tootctl_create.rc != 0
and
("taken" not in tootctl_create.stderr | lower)
- name: Approve the administrator account in Mastodon
command: