From 5385db2b1617159406ac927d5f58c0648135d4c0 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Fri, 28 Jun 2019 14:18:20 -0400 Subject: [PATCH] Adds a task to directly install the serveur-base .deb in ubuntu This package is not available yet on ubuntu systems so we must install it directly alongside log2mail and evocheck. Fixes #57 --- evolinux-base/tasks/packages.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/evolinux-base/tasks/packages.yml b/evolinux-base/tasks/packages.yml index b4d9cee1..d7778fe7 100644 --- a/evolinux-base/tasks/packages.yml +++ b/evolinux-base/tasks/packages.yml @@ -80,11 +80,20 @@ - mlocate when: evolinux_packages_purge_locate -- name: Install/Update serveur-base meta-package +- name: Install/Update serveur-base meta-package on debian apt: name: serveur-base allow_unauthenticated: yes - when: evolinux_packages_serveur_base + when: evolinux_packages_serveur_base and (ansible_distribution == "Debian") + +- name: Install/Update serveur-base meta-package on ubuntu + apt: + deb: "{{ item }}" + with_items: + - 'http://pub.evolix.net/stretch/log2mail_0.3.0-2_amd64.deb' + - 'http://pub.evolix.net/stretch/evocheck_0.10-1_all.deb' + - 'http://pub.evolix.net/stretch/serveur-base_0.4.0_all.deb' + when: evolinux_packages_serveur_base and (ansible_distribution == "Ubuntu") - name: Install/Update packages for Stretch and later apt: