15 lines
618 B
YAML
15 lines
618 B
YAML
---
|
|
# tasks file for mpd
|
|
- name: install mpd
|
|
pacman:
|
|
state: present # not required. choices: absent;latest;present. Desired state of the package.
|
|
name: ['mpd' , 'mpc' , 'ncmpcpp' ] # not required. Name or list of names of the packages to install, upgrade, or remove.
|
|
become: yes
|
|
|
|
- name: apply mpd.conf template
|
|
become: yes
|
|
template:
|
|
dest: /etc/mpd.conf # required. Location to render the template to on the remote machine.
|
|
src: ../templates/mpd.conf.j2 # required. Path of a Jinja2 formatted template on the Ansible controller. This can be a relative or absolute path.
|
|
notify: start_mpd
|