From 2b08e985ac1efd780a61d61da7e74c171a2ec26c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 22 Feb 2017 18:18:10 +0100 Subject: [PATCH] library/roles/ubuntu-deb-general: Install a couple of python packages needed by some ansible modules. --- ubuntu-deb-general/defaults/main.yml | 6 ++++++ ubuntu-deb-general/tasks/packages.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ubuntu-deb-general/defaults/main.yml b/ubuntu-deb-general/defaults/main.yml index a4f52348..0e1afd40 100644 --- a/ubuntu-deb-general/defaults/main.yml +++ b/ubuntu-deb-general/defaults/main.yml @@ -30,6 +30,12 @@ common_packages: - xmlstarlet - bsdutils +default_python_packages: + - python-software-properties + - python-lxml + - python-boto + + # Set this variable in your playbook # additional_packages: # - pkg1 diff --git a/ubuntu-deb-general/tasks/packages.yml b/ubuntu-deb-general/tasks/packages.yml index 67e6c0f2..44d0b863 100644 --- a/ubuntu-deb-general/tasks/packages.yml +++ b/ubuntu-deb-general/tasks/packages.yml @@ -1,6 +1,7 @@ --- - name: Install the basic packages - apt: pkg=python-software-properties state=installed + apt: pkg={{ item }} state=installed + with_items: '{{ default_python_packages }}' tags: packages - name: Install software-properties-common if needed