Add ansible playbook to update multiple Ditto servers at once

This commit is contained in:
Alex Gleason 2024-09-07 10:54:48 -05:00
parent ac4a63bdcc
commit 23f6038427
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

23
ansible/playbook.yml Normal file
View file

@ -0,0 +1,23 @@
---
- name: Update Ditto
hosts: all
become: true
tasks:
- name: Update Soapbox
shell:
cmd: deno task soapbox
chdir: /opt/ditto
become_user: ditto
- name: Update ditto from the main branch
git:
repo: 'https://gitlab.com/soapbox-pub/ditto.git'
dest: '/opt/ditto'
version: main
become_user: ditto
- name: Restart ditto service
systemd:
name: ditto
state: restarted
become_user: root