From 597a0d5825b2d4fc32e3e9953044b1537e8ecdbc Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 14 Dec 2018 00:09:51 +0100 Subject: [PATCH] small fixes for pip and default variables --- tasks/prepare.yml | 5 +---- tasks/setup.yml | 2 +- vars/main.yml | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 12f07fe..77b668d 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -8,11 +8,8 @@ - name: Install required dependencies pip: - name: "{{ item }}" + name: "{{ __drone_pip_dependencies }}" state: present - with_items: - - docker - - docker-compose become: True become_user: root diff --git a/tasks/setup.yml b/tasks/setup.yml index 802568a..766d865 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -1,7 +1,7 @@ --- - name: Concat lists for proxy setup set_fact: - droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy }}" + droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy | default([]) }}" - block: - name: Deploy compose file to '{{ droneci_service_directory }}' diff --git a/vars/main.yml b/vars/main.yml index 0b18f80..860139d 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,3 +2,7 @@ __droneci_default_no_proxy: - droneserver - droneagent + +__drone_pip_dependencies: + - docker + - docker-compose