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

@ -630,11 +630,10 @@ APT::Install-Suggests "0";
blockinfile: blockinfile:
dest: /etc/vdr/conf.d/04-vdr-hide-first-recordinglevel.conf dest: /etc/vdr/conf.d/04-vdr-hide-first-recordinglevel.conf
create: true create: true
state: "{{ 'present' if vdr.hide_first_recording_level else 'absent' }}"
block: | block: |
[vdr] [vdr]
--hide-first-recording-level --hide-first-recording-level
when:
vdr.hide_first_recording_level
- name: create local dir in recdir - name: create local dir in recdir
file: file:
@ -4297,7 +4296,7 @@ options:
default: ":0" default: ":0"
description: description:
- the DISPLAY variable to use when calling xrandr - the DISPLAY variable to use when calling xrandr
preferred_outpus: preferred_outputs:
required: False required: False
default: ["HDMI", "DP", "DVI", "VGA", "TV": 0] default: ["HDMI", "DP", "DVI", "VGA", "TV": 0]
description: description:

View File

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