2019-01-07 20:12:48 +00:00
|
|
|
---
|
|
|
|
# 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.
|
2022-10-30 07:18:25 +00:00
|
|
|
# notify: start_mpd
|
2019-01-08 21:03:29 +00:00
|
|
|
|
|
|
|
|
2019-04-08 21:07:55 +00:00
|
|
|
#- name: stat default music path
|
|
|
|
# stat:
|
|
|
|
# path: "{{default_music_path}}" # required. The full path of the file/object to get the facts of.
|
|
|
|
# register: default_music_path_exist
|
|
|
|
#
|
|
|
|
#- name: copy music
|
|
|
|
# command: "rsync -avzu --progress -h {{default_music_path}}/ {{music_directory}}"
|
|
|
|
# when: default_music_path_exist.stat.exists and music_directory is search("/home/")
|
2019-01-08 21:03:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|