♻: add pg role determination to mastodon
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Init db
|
||||
ansible.builtin.include_tasks: db.yml
|
||||
|
||||
- name: Create mastodon user
|
||||
ansible.builtin.user:
|
||||
name: mastodon
|
||||
@@ -63,5 +66,15 @@
|
||||
- name: Install mastodon
|
||||
ansible.builtin.include_tasks: mastodon.yml
|
||||
|
||||
- name: Put env file
|
||||
ansible.builtin.template:
|
||||
src: "env.production.j2"
|
||||
dest: "{{ mastodon_home }}/live/.env.production"
|
||||
user: mastodon
|
||||
group: mastodon
|
||||
mode: "0o600"
|
||||
notify:
|
||||
- Restart mastodon
|
||||
|
||||
- name: Install tootctl cron
|
||||
ansible.builtin.include_tasks: cron.yml
|
||||
|
Reference in New Issue
Block a user