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-mpd
- mopidy-spotify - mopidy-spotify
- name: Template out config - name: Template out config
template: block:
src: mopidy.conf - name: Create config directory
mode: "0600" file:
dest: "~/.config/mopidy/mopidy.conf" 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_user: "{{ user_username }}"
become: yes become: yes
- name: Remove MPD - name: Remove MPD