From 3e78fd069d47b71d29553d6be012871e2ab80654 Mon Sep 17 00:00:00 2001 From: Manu Date: Thu, 28 Feb 2019 18:40:24 +0800 Subject: [PATCH] Ensure setuptools is updated, avoid updating too many packages. --- tasks/main.yml | 10 +++++++++- templates/config.yaml.j2 | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 726562c..a0ef783 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,8 @@ --- - name: Regenerate apt-cache and update packages - apt: update_cache=yes upgrade=dist cache_valid_time=120 + apt: + update_cache: yes + cache_valid_time: 120 - name: Install required System Packages apt: @@ -8,6 +10,12 @@ state: installed with_items: "{{ borg_apt_packages }}" +- name: Update setuptools if needed + pip: + name: setuptools + state: latest + executable: pip3 + - name: Install required Python Packages pip: name: "{{ item }}" diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index 62dd1f9..2306f42 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -1,3 +1,4 @@ +# Full config: https://gist.github.com/coaxial/46e36d89d7b81887f7275d587fe04c44 location: source_directories: {% for dir in borg_source_directories %}