Add static repo cloning for pleroma, tighten locks on config

This commit is contained in:
Salt 2020-07-28 10:57:34 -05:00
parent 54a8e4aa2d
commit 1fbe8cd516
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,7 @@ pleroma_instance_email: rehashedsalt@cock.li
pleroma_instance_name: Cowfee pleroma_instance_name: Cowfee
pleroma_instance_notify_email: noreply@cowfee.moe pleroma_instance_notify_email: noreply@cowfee.moe
pleroma_openreg: true pleroma_openreg: true
pleroma_static_repo: "https://git.9iron.club/salt/pleroma"
pleroma_db_password: !vault | pleroma_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
34343838386134656236313462653531663839363030333630383332386535356431326436633137 34343838386134656236313462653531663839363030333630383332386535356431326436633137

View File

@ -122,7 +122,14 @@
dest: /etc/pleroma/config.exs dest: /etc/pleroma/config.exs
owner: pleroma owner: pleroma
group: pleroma group: pleroma
mode: "0640"
notify: restart pleroma notify: restart pleroma
- name: Clone static directory
git:
repo: "{{ pleroma_static_repo }}"
dest: "/var/lib/pleroma/static"
force: yes
when: pleroma_static_repo is defined
- name: Migrate DB - name: Migrate DB
command: /opt/pleroma/bin/pleroma_ctl migrate command: /opt/pleroma/bin/pleroma_ctl migrate
args: args: