Fix condition

This commit is contained in:
Alexander Grothe
2017-12-19 20:10:39 +01:00
parent a84b9b1742
commit 4c4705e49f
2 changed files with 3 additions and 5 deletions

View File

@@ -30,11 +30,10 @@
blockinfile:
dest: /etc/vdr/conf.d/04-vdr-hide-first-recordinglevel.conf
create: true
state: "{{ 'present' if vdr.hide_first_recording_level else 'absent' }}"
block: |
[vdr]
--hide-first-recording-level
when:
vdr.hide_first_recording_level
- name: create local dir in recdir
file: