Set permissions for folder
This commit is contained in:
parent
2bc51d0514
commit
930030b7ac
1 changed files with 13 additions and 0 deletions
|
@ -36,6 +36,12 @@
|
|||
dest: "{{ mastodon_composer_folder }}/docker-compose.override.yml"
|
||||
backup: true
|
||||
|
||||
- name: Set permission for public/system folder
|
||||
file:
|
||||
path: "{{ mastodon_composer_folder }}/public/system"
|
||||
mode: 0777
|
||||
state: directory
|
||||
|
||||
- name: Ensure mastodon environment configuration is present
|
||||
template:
|
||||
src: templates/env.j2
|
||||
|
@ -159,6 +165,13 @@
|
|||
chdir: "{{ mastodon_composer_folder }}"
|
||||
when: not mastodon_initial_setup
|
||||
|
||||
- name: Run Mastodon container to include secrets
|
||||
community.docker.docker_compose:
|
||||
project_name: mastodon
|
||||
project_src: "{{ mastodon_composer_folder }}/"
|
||||
state: present
|
||||
stopped: false
|
||||
|
||||
- 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"
|
||||
args:
|
||||
|
|
Loading…
Reference in a new issue