From a8422e0cf4baefec79cf39e85ae80d9ed9c3d5e8 Mon Sep 17 00:00:00 2001 From: Vladislav Naumov Date: Wed, 8 Feb 2017 17:56:52 +0600 Subject: [PATCH] become: yes at pip installs we must be root to install these things globally otherwise installation fails with cryptic "Could not import setuptools which is required to install from a source distribution." message --- roles/luigi/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/luigi/tasks/main.yml b/roles/luigi/tasks/main.yml index a275a9b..3b6fb47 100644 --- a/roles/luigi/tasks/main.yml +++ b/roles/luigi/tasks/main.yml @@ -1,7 +1,9 @@ --- - name: Install luigi via pip + become: yes pip: name=luigi version=2.1.0 # Has to be 2.1.0 to not give warnings about non-string parameters - name: Install sciluigi via pip + become: yes pip: name={{ item }} with_items: