mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-28 18:30:24 +02:00
Optimized mastodon create administrator
This commit is contained in:
parent
cd2f5f8717
commit
da89bb6ed1
@ -11,7 +11,12 @@
|
|||||||
command:
|
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"'
|
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}}"
|
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
|
- name: Approve the administrator account in Mastodon
|
||||||
command:
|
command:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user