feat: add mastodon support directly

This commit is contained in:
VC
2024-07-05 11:53:29 +02:00
parent a8868f7f07
commit e77ff577c1
17 changed files with 427 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
---
- name: get yarn gpg url
get_url:
url: "{{ mastodon_yarn_key_url }}"
dest: /tmp/yarn.gpg.key
- name: gpg dearmor key
shell: "gpg --dearmor -o {{ mastodon_yarn_key_path }} /tmp/yarn.gpg.key"
args:
creates: "{{ mastodon_yarn_key_path }}"
- name: yarn source repo
copy:
content: "deb [signed-by={{ mastodon_yarn_key_path }}] https://dl.yarnpkg.com/debian stable main"
dest: /etc/apt/sources.list.d/yarn.list
- name: install yarn
apt:
name: yarn
state: present
update_cache: true