mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Add ansible playbook to update multiple Ditto servers at once
This commit is contained in:
parent
ac4a63bdcc
commit
23f6038427
1 changed files with 23 additions and 0 deletions
23
ansible/playbook.yml
Normal file
23
ansible/playbook.yml
Normal 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
|
||||
Loading…
Add table
Reference in a new issue