mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
30 lines
674 B
YAML
30 lines
674 B
YAML
---
|
|
- name: Update Ditto
|
|
hosts: all
|
|
become: true
|
|
tasks:
|
|
- name: Update Deno
|
|
shell:
|
|
cmd: curl -fsSL https://deno.land/x/install/install.sh | sh
|
|
environment:
|
|
DENO_INSTALL: /usr/local
|
|
become_user: root
|
|
|
|
- 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
|