Skip to content
Snippets Groups Projects
Commit 1dd7274d authored by nimrod's avatar nimrod
Browse files

Merge branch 'master' of /home/nimrod/Documents/Shore/Ansible/example

# Conflicts:
#	.travis.yml
#	molecule.yml
#	tasks/main.yml
#	tests/playbook.yml
parents 5c730670 38af8475
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- id: flake8 - id: flake8
- id: check-symlinks - id: check-symlinks
- repo: https://github.com/adarnimrod/ansible-pre-commit.git - repo: https://github.com/adarnimrod/ansible-pre-commit.git
sha: 0fadd691465b97db8992cfc66650f630e433324b sha: v0.5.0
hooks: hooks:
- id: ansible-syntax-check - id: ansible-syntax-check
always_run: true always_run: true
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
name: piprot name: piprot
description: Check up-to-date Python requirements description: Check up-to-date Python requirements
language: system language: system
entry: piprot --quiet --outdated tests/requirements.txt entry: piprot --outdated tests/requirements.txt
files: requirements.txt files: requirements.txt
always_run: true always_run: true
--- ---
language: python language: python
python: ["2.7", "3.4"] python: ["2.7", "3.5"]
dist: trusty dist: trusty
sudo: True sudo: True
group: beta group: beta
env: env:
- platform: openbsd60 - platform: openbsd60
driver: vagrant - &openbsd59 platform=openbsd59
- &openbsd59 platform=openbsd59 driver=vagrant
- platform: openbsd56 - platform: openbsd56
driver: vagrant
matrix: matrix:
fast_finish: True fast_finish: True
allow_failures: allow_failures:
- python: "3.4" - python: "3.5"
- env: *openbsd59 - env: *openbsd59
cache: cache:
- pip - pip
...@@ -31,7 +29,7 @@ install: ...@@ -31,7 +29,7 @@ install:
script: script:
- pre-commit run --all-files - pre-commit run --all-files
- molecule test --driver $driver --platform $platform - molecule test --platform $platform
notifications: notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
...@@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`. ...@@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`.
Testing Testing
------- -------
Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox. Testing requires Python 2.7, Vagrant and Virtualbox. Install the Python
Install the Python dependencies, dependent roles and roles required for dependencies, dependent roles and roles required for testing:
testing:
.. code:: shell .. code:: shell
......
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
roles: roles:
- role: openbsd-bootstrap - role: openbsd-bootstrap
post_tasks: post_tasks:
- name: Test gathering facts
setup:
- name: Test ping
ping:
- name: Test task with an unprivileged user - name: Test task with an unprivileged user
ignore_errors: '{{ ansible_check_mode }}' ignore_errors: '{{ ansible_check_mode }}'
become: True become: True
......
ansible==2.2.1.0 ansible==2.2.1.0
testinfra==1.5.2 testinfra==1.5.3
molecule==1.18.0 molecule==1.19.1
ansible-lint==3.4.10 ansible-lint==3.4.10
pre-commit==0.10.1 pre-commit==0.12.2
piprot==0.9.7 piprot==0.9.7
python-vagrant==0.5.14 python-vagrant==0.5.14
docker-py==1.10.6
netaddr==0.7.19 netaddr==0.7.19
passlib==1.7.0 passlib==1.7.1
bcrypt==3.1.2 bcrypt==3.1.2
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
name: openbsd-bootstrap name: openbsd-bootstrap
- src: adarnimrod.debian-bootstrap - src: adarnimrod.debian-bootstrap
name: debian-bootstrap name: debian-bootstrap
- src: adarnimrod.users
name: users
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment