Create mopidy config directory if it doesn't exist

This commit is contained in:
Salt 2020-06-16 09:53:01 -05:00
parent af9d0da2ea
commit fe7b962ad7

View File

@ -25,10 +25,17 @@
- mopidy-mpd
- mopidy-spotify
- name: Template out config
template:
src: mopidy.conf
mode: "0600"
dest: "~/.config/mopidy/mopidy.conf"
block:
- name: Create config directory
file:
path: "~/.config/mopidy"
state: directory
mode: "0755"
- name: Template out config
template:
src: mopidy.conf
mode: "0600"
dest: "~/.config/mopidy/mopidy.conf"
become_user: "{{ user_username }}"
become: yes
- name: Remove MPD