Fixed : 'content', not 'contents' in slurp module response

This commit is contained in:
nicobo 2020-11-20 22:58:59 +01:00
parent d3db6d8faf
commit 419be15bb0
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F

View file

@ -153,7 +153,7 @@
- name: Backup Rygel config file (3/3 - saves the temporary backup only if rygel.conf has changed) - name: Backup Rygel config file (3/3 - saves the temporary backup only if rygel.conf has changed)
copy: copy:
dest: "{{ rygel_conf }}.{{ 9999 | random }}.{{ '%Y-%m-%d@%H:%M:%S~' | strftime }}" dest: "{{ rygel_conf }}.{{ 9999 | random }}.{{ '%Y-%m-%d@%H:%M:%S~' | strftime }}"
content: "{{ rygel_conf_backup['contents'] | b64decode }}" content: "{{ rygel_conf_backup.content | b64decode }}"
when: rygel_conf.changed when: rygel_conf.changed
# TODO Allow preventing Rygel from exporting all media by default # TODO Allow preventing Rygel from exporting all media by default