Feat: init refact with test
This commit is contained in:
28
roles/mopidy-server/tasks/main.yml
Normal file
28
roles/mopidy-server/tasks/main.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# tasks file for mopidy-server
|
||||
- name: install gpg
|
||||
apt:
|
||||
name: gpg
|
||||
state: present
|
||||
update_cache: yes
|
||||
become: yes
|
||||
|
||||
|
||||
- name: Add an apt.modidy.com key
|
||||
ansible.builtin.apt_key:
|
||||
url: "https://apt.mopidy.com/mopidy.gpg"
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
- name: Add apt.modidy.com repo
|
||||
get_url:
|
||||
url: https://apt.mopidy.com/buster.list
|
||||
dest: /etc/apt/sources.list.d/mopidy.list
|
||||
become: yes
|
||||
|
||||
- name: Install mopidy
|
||||
apt:
|
||||
name: mopidy
|
||||
state: present
|
||||
update_cache: yes
|
||||
become: yes
|
||||
Reference in New Issue
Block a user