2017-10-10 06:03:19 +00:00
language : python
2021-02-24 21:44:51 +00:00
python : "3.8"
dist : focal
2021-02-24 21:50:44 +00:00
#addons:
# apt:
# packages:
# - python-pip
2021-02-24 21:57:40 +00:00
install :
2021-02-24 22:37:40 +00:00
# - 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
2021-02-24 22:12:27 +00:00
# - pip install ansible # SLOW/OVERWEIGHT: installs Ansible 3.0.0+ with ~80 Ansible Collections
- pip install ansible-base # Let's avoid all Ansible Collections for now (for Ansible syntax check!)
2021-02-24 22:37:40 +00:00
- ansible-galaxy collection install -r collections.yml
2021-02-24 22:25:14 +00:00
- "{ echo 'roles_path = ./roles/'; } >> ansible.cfg" # Add correct roles_path to ansible.cfg
# - "{ echo '[defaults]'; echo 'roles_path = ./roles/'; } >> ansible.cfg" # Create ansible.cfg with correct roles_path and local_tmp
# - cat ansible.cfg # UNCOMMENT TO VERIFY
2017-10-10 06:03:19 +00:00
script :
2021-02-24 21:57:40 +00:00
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check