feat: add mastodon support directly
This commit is contained in:
22
roles/mastodon/tasks/yarn.yml
Normal file
22
roles/mastodon/tasks/yarn.yml
Normal 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
|
Reference in New Issue
Block a user