From f79346cf95f1578151b201f6298d9150f1e57806 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 1 Aug 2016 17:22:35 +0200 Subject: [PATCH] library/roles/dnet_user_services_perms/tasks/dnet-additional-packages.yml: Ansible 2 compatibility. --- dnet_user_services_perms/tasks/dnet-additional-packages.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dnet_user_services_perms/tasks/dnet-additional-packages.yml b/dnet_user_services_perms/tasks/dnet-additional-packages.yml index 3f750df1..00fb659d 100644 --- a/dnet_user_services_perms/tasks/dnet-additional-packages.yml +++ b/dnet_user_services_perms/tasks/dnet-additional-packages.yml @@ -1,13 +1,11 @@ --- - name: Install additional packages, if needed apt: pkg={{ item }} state=installed - with_items: '{{ dnet_additional_packages }}' - when: dnet_additional_packages is defined + with_items: '{{ dnet_additional_packages | default ([]) }}' tags: ['dnet', 'pkgs'] - name: Install additional python modules, if needed pip: name={{ item }} state=present - with_items: '{{ dnet_additional_python_modules }}' - when: dnet_additional_python_modules is defined + with_items: '{{ dnet_additional_python_modules | default ([]) }}' tags: ['dnet', 'pkgs']