From bd7895892eb58502ff63f5aa3bfa97b9c63344d2 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 1 Apr 2019 14:14:20 +0200 Subject: [PATCH] Fix the apt task. --- ubuntu-python-setup/tasks/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ubuntu-python-setup/tasks/main.yml b/ubuntu-python-setup/tasks/main.yml index 037d1480..fd1fdb49 100644 --- a/ubuntu-python-setup/tasks/main.yml +++ b/ubuntu-python-setup/tasks/main.yml @@ -12,8 +12,7 @@ when: python_pip_fixer is changed - name: Install the python dev headers and other dev requirements - apt: pkg={{ item }} state={{ python_pkgs_state }} update_cache=yes cache_valid_time=1800 - with_items: '{{ python_pip_dev_packages }}' + apt: pkg={{ python_pip_dev_packages }} state={{ python_pkgs_state }} update_cache=yes cache_valid_time=1800 - name: Install a specific version of tornado to avoid breaking dependencies pip: name=tornado version=4.1 state=present @@ -25,8 +24,7 @@ pip: name=setuptools version=33.1.1 state=present - name: Fix the ssl warnings installing some ssl libraries - pip: name={{ item }} state={{ python_pkgs_state }} - with_items: '{{ python_pip_fix_ssl_warnings | default ([]) }}' + pip: name={{ python_pip_fix_ssl_warnings | default ([]) }} state={{ python_pkgs_state }} register: python_pip_env_workaround when: is_trusty