From 601b50fc34640f117f3bee2fdaab8c842bd50af9 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 24 Feb 2021 18:57:12 -0500 Subject: [PATCH] Update .travis.yml --- .travis.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1f7a89df..5549301be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,19 @@ language: python -python: "3.8" +python: 3.8 # "3.8" also works dist: focal -#addons: -# apt: -# packages: -# - python-pip +addons: + apt: + sources: + - sourceline: ppa:ansible/ansible + packages: + - ansible-base # Install latest ansible-base e.g. 2.10.6+, similar to https://github.com/iiab/iiab/blob/master/scripts/ansible +# - python-pip install: # - scripts/ansible # See #2105: fails to install latest Ansible (& ~4 Ansible Collections from collections.yml) due to Travis VM's disk layout/perms being different # - pip install ansible # SLOW/OVERWEIGHT: installs Ansible 3.0.0+ with ~80 Ansible Collections - - pip install ansible-base # Install latest ansible-base 2.10.6+, similar to https://github.com/iiab/iiab/blob/master/scripts/ansible +# - pip install ansible-base # Install latest ansible-base e.g. 2.10.6+, similar to https://github.com/iiab/iiab/blob/master/scripts/ansible - ansible-galaxy collection install -r collections.yml # Install ~4 Ansible Collections - "{ echo 'roles_path = ./roles/'; } >> ansible.cfg" # Add correct roles_path to ansible.cfg, appending to https://github.com/iiab/iiab/blob/master/ansible.cfg # - "{ echo '[defaults]'; echo 'roles_path = ./roles/'; } >> ansible.cfg" # Create ansible.cfg with correct roles_path and local_tmp