mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
15 lines
529 B
YAML
15 lines
529 B
YAML
---
|
|
language: python
|
|
python: "2.7"
|
|
before_install:
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq python-apt python-pycurl
|
|
install:
|
|
- pip install ansible
|
|
- echo -e 'localhost ansible_connection=local' > spec/inventory
|
|
- echo -e '[defaults]\nroles_path = ./roles\nhostfile = ./spec/inventory' > ansible.cfg
|
|
- echo -e 'hash_behaviour=merge' >> ansible.cfg
|
|
|
|
script:
|
|
- ansible-playbook --syntax-check spec/travis.yml
|
|
- ansible-playbook --sudo -v --diff spec/travis.yml --extra-vars "@spec/travis_exceptions.json"
|