Add compatibility for debian 9 and debian 10 in HW tool and megacli package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Eric Morino 2019-11-14 14:29:04 +01:00
parent eb81c69327
commit c15f8963e4

View file

@ -57,13 +57,12 @@
apt_key: apt_key:
# url: https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key # url: https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key
data: "{{ lookup('file', 'hwraid.le-vert.net.gpg.key') }}" data: "{{ lookup('file', 'hwraid.le-vert.net.gpg.key') }}"
when: ansible_distribution_release == "stretch" when: ansible_distribution_major_version | version_compare('9', '>=')
- name: Add HW tool repository - name: Add HW tool repository
apt_repository: apt_repository:
repo: 'deb http://hwraid.le-vert.net/debian stretch main' repo: 'deb http://hwraid.le-vert.net/debian {{ ansible_distribution_release }} main'
state: present state: present
when: ansible_distribution_release == "stretch"
- name: Install packages for DELL/LSI hardware - name: Install packages for DELL/LSI hardware
apt: apt: