delete copy data

This commit is contained in:
vincent 2019-04-08 23:07:55 +02:00
parent 16c88a4560
commit 84f4a42905

View File

@ -14,14 +14,14 @@
notify: start_mpd notify: start_mpd
- name: stat default music path #- name: stat default music path
stat: # stat:
path: "{{default_music_path}}" # required. The full path of the file/object to get the facts of. # path: "{{default_music_path}}" # required. The full path of the file/object to get the facts of.
register: default_music_path_exist # register: default_music_path_exist
#
- name: copy music #- name: copy music
command: "rsync -avzu --progress -h {{default_music_path}}/ {{music_directory}}" # command: "rsync -avzu --progress -h {{default_music_path}}/ {{music_directory}}"
when: default_music_path_exist.stat.exists and music_directory is search("/home/") # when: default_music_path_exist.stat.exists and music_directory is search("/home/")