Fix deprecation warnings for Ansible 2.8

This commit is contained in:
Alexander Grothe 2019-05-23 17:10:19 +02:00
parent 9648bae2bd
commit 9e58e0b4e4
7 changed files with 17 additions and 17 deletions

View File

@ -744,7 +744,7 @@ yavdr-common executes the following tasks:
with_first_found: with_first_found:
- files: - files:
- /etc/update-manager/release-upgrades - /etc/update-manager/release-upgrades
skip: true errors: ignore
#+END_SRC #+END_SRC
***** Install essential packages ***** Install essential packages
@ -2618,7 +2618,7 @@ preferred_refreshrates:
- xserver-xorg-video-intel - xserver-xorg-video-intel
- i965-va-driver-shaders - i965-va-driver-shaders
state: present state: present
when: intel_detected and not nvidia_detected when: intel_detected | bool and not nvidia_detected | bool
- name: Install yaVDR Media (e.g. Backgrounds) - name: Install yaVDR Media (e.g. Backgrounds)
apt: apt:
@ -2740,8 +2740,8 @@ preferred_refreshrates:
masked: false masked: false
daemon_reload: true daemon_reload: true
when: when:
- nvidia_detected - nvidia_detected | bool
- nvidia_driver_installed - nvidia_driver_installed | bool
- '"nouveau" in modules' - '"nouveau" in modules'
- name: "start x-verbose@.service" - name: "start x-verbose@.service"
@ -2832,14 +2832,14 @@ preferred_refreshrates:
dest: /etc/X11/xorg.conf dest: /etc/X11/xorg.conf
backup: yes backup: yes
when: when:
- nvidia_detected - nvidia_detected | bool
- name: intel xorg config snippet - name: intel xorg config snippet
template: template:
src: templates/20-intel.conf.j2 src: templates/20-intel.conf.j2
dest: /etc/X11/xorg.conf.d/20-intel.conf dest: /etc/X11/xorg.conf.d/20-intel.conf
when: when:
- intel_detected and not nvidia_detected - intel_detected | bool and not nvidia_detected | bool
- name: server flags config snippet to disable screen blanking - name: server flags config snippet to disable screen blanking
template: template:
@ -6004,7 +6004,7 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-satip
apt: apt:
name: vdr-plugin-satip name: vdr-plugin-satip
state: present state: present
when: satip_devices when: satip_devices | bool
notify: [ 'Restart VDR' ] notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** autoinstall-targavfd ** autoinstall-targavfd

View File

@ -35,7 +35,7 @@
state: absent state: absent
when: when:
- dvbsky_firmware_files is defined - dvbsky_firmware_files is defined
- dvbsky_firmware_files - dvbsky_firmware_files | bool
tags: tags:
- install - install
- autodetect - autodetect

View File

@ -12,5 +12,5 @@
apt: apt:
name: vdr-plugin-satip name: vdr-plugin-satip
state: present state: present
when: satip_devices when: satip_devices | bool
notify: [ 'Restart VDR' ] notify: [ 'Restart VDR' ]

View File

@ -16,8 +16,8 @@
dpkg_reconfigure: dpkg_reconfigure:
pkg: libdvd-pkg pkg: libdvd-pkg
answers: answers:
libdvd-pkg/post-invoke_hook-install: boolean true libdvd-pkg/post-invoke_hook-install: "boolean true"
libdvd-pkg/build: boolean true libdvd-pkg/build: "boolean true"
- name: change udev rule to allow KODI to eject optical disks - name: change udev rule to allow KODI to eject optical disks

View File

@ -28,7 +28,7 @@
with_first_found: with_first_found:
- files: - files:
- /etc/update-manager/release-upgrades - /etc/update-manager/release-upgrades
skip: true errors: ignore
- name: apt | install basic packages - name: apt | install basic packages
apt: apt:
name: name:

View File

@ -89,8 +89,8 @@
masked: false masked: false
daemon_reload: true daemon_reload: true
when: when:
- nvidia_detected - nvidia_detected | bool
- nvidia_driver_installed - nvidia_driver_installed | bool
- '"nouveau" in modules' - '"nouveau" in modules'
- name: "start x-verbose@.service" - name: "start x-verbose@.service"
@ -181,14 +181,14 @@
dest: /etc/X11/xorg.conf dest: /etc/X11/xorg.conf
backup: yes backup: yes
when: when:
- nvidia_detected - nvidia_detected | bool
- name: intel xorg config snippet - name: intel xorg config snippet
template: template:
src: templates/20-intel.conf.j2 src: templates/20-intel.conf.j2
dest: /etc/X11/xorg.conf.d/20-intel.conf dest: /etc/X11/xorg.conf.d/20-intel.conf
when: when:
- intel_detected and not nvidia_detected - intel_detected | bool and not nvidia_detected | bool
- name: server flags config snippet to disable screen blanking - name: server flags config snippet to disable screen blanking
template: template:

View File

@ -84,7 +84,7 @@
- xserver-xorg-video-intel - xserver-xorg-video-intel
- i965-va-driver-shaders - i965-va-driver-shaders
state: present state: present
when: intel_detected and not nvidia_detected when: intel_detected | bool and not nvidia_detected | bool
- name: Install yaVDR Media (e.g. Backgrounds) - name: Install yaVDR Media (e.g. Backgrounds)
apt: apt: