remove unnnecesary steps and add permissions
This commit is contained in:
parent
c607019c5b
commit
80c933a381
1 changed files with 0 additions and 23 deletions
|
@ -144,21 +144,6 @@
|
||||||
stopped: true
|
stopped: true
|
||||||
build: true
|
build: true
|
||||||
|
|
||||||
- name: Start Redis container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon_redis_1
|
|
||||||
state: started
|
|
||||||
|
|
||||||
- name: Start ElasticSearch container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon_es_1
|
|
||||||
state: started
|
|
||||||
|
|
||||||
- name: Start database container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon_db_1
|
|
||||||
state: started
|
|
||||||
|
|
||||||
# CREATE USER mastodon CREATEDB;
|
# CREATE USER mastodon CREATEDB;
|
||||||
- name: Set up database
|
- name: Set up database
|
||||||
shell: "docker-compose run --rm web bundle exec rake db:setup && echo 'Database ready' > /var/lib/mastodon_db_setup"
|
shell: "docker-compose run --rm web bundle exec rake db:setup && echo 'Database ready' > /var/lib/mastodon_db_setup"
|
||||||
|
@ -174,14 +159,6 @@
|
||||||
chdir: "{{ mastodon_composer_folder }}"
|
chdir: "{{ mastodon_composer_folder }}"
|
||||||
when: not mastodon_initial_setup
|
when: not mastodon_initial_setup
|
||||||
|
|
||||||
- name: Build Mastodon container to include secrets
|
|
||||||
community.docker.docker_compose:
|
|
||||||
project_name: mastodon
|
|
||||||
project_src: "{{ mastodon_composer_folder }}/"
|
|
||||||
state: present
|
|
||||||
stopped: false
|
|
||||||
build: true
|
|
||||||
|
|
||||||
- name: Create initial user
|
- name: Create initial user
|
||||||
shell: "docker-compose run --rm web bin/tootctl accounts create '{{ mastodon_owner }}' --email '{{ mastodon_owner_email }}' --confirmed --role Owner && echo 'Owner account created' > /var/lib/mastodon_owner_created"
|
shell: "docker-compose run --rm web bin/tootctl accounts create '{{ mastodon_owner }}' --email '{{ mastodon_owner_email }}' --confirmed --role Owner && echo 'Owner account created' > /var/lib/mastodon_owner_created"
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in a new issue