Ensure setuptools is updated, avoid updating too many packages.

This commit is contained in:
Manu 2019-02-28 18:40:24 +08:00
parent ecc4ccce78
commit 3e78fd069d
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,8 @@
--- ---
- name: Regenerate apt-cache and update packages - 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 - name: Install required System Packages
apt: apt:
@ -8,6 +10,12 @@
state: installed state: installed
with_items: "{{ borg_apt_packages }}" with_items: "{{ borg_apt_packages }}"
- name: Update setuptools if needed
pip:
name: setuptools
state: latest
executable: pip3
- name: Install required Python Packages - name: Install required Python Packages
pip: pip:
name: "{{ item }}" name: "{{ item }}"

View File

@ -1,3 +1,4 @@
# Full config: https://gist.github.com/coaxial/46e36d89d7b81887f7275d587fe04c44
location: location:
source_directories: source_directories:
{% for dir in borg_source_directories %} {% for dir in borg_source_directories %}