Fixed rygel_conf -> rygel_conf_path

This commit is contained in:
nicobo 2020-11-20 23:03:10 +01:00
parent 419be15bb0
commit 43795c3477
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F

View file

@ -152,7 +152,7 @@
# Because the `ini_file` module used in a loop and `backup:yes` would create a backup for each iteration... :-( # Because the `ini_file` module used in a loop and `backup:yes` would create a backup for each iteration... :-(
- 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_path }}.{{ 9999 | random }}.{{ '%Y-%m-%d@%H:%M:%S~' | strftime }}"
content: "{{ rygel_conf_backup.content | b64decode }}" content: "{{ rygel_conf_backup.content | b64decode }}"
when: rygel_conf.changed when: rygel_conf.changed