Prevent increasing failed status count when package is not available

This commit is contained in:
Alexander Grothe 2018-08-10 14:40:22 +02:00
parent 73a7e75db9
commit 3a349fd6ed

View File

@ -9,14 +9,17 @@
- kodi
- kodi-pvr-vdr-vnsi
- name: apt | install kodi-send
block:
- apt:
- name: apt | install kodi-send (team-xbmc PPA)
apt:
name: "kodi-eventclients-xbmc-send" # team-xbmc uses "kodi-eventclients-xbmc-send for some reason
state: present
install_recommends: no
rescue:
- apt:
register: team_xbmc_ppa
ignore_errors: True
- name: apt | install kodi-send (Ubuntu package)
apt:
name: "kodi-eventclients-kodi-send" # fallback to ubuntu package
state: present
install_recommends: no
when: team_xbmc_ppa.failed