Skip to content

Commit

Permalink
Add callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Alban Andrieu committed Feb 11, 2016
1 parent c7ca457 commit 0d9e7de
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
language: python
python: "2.7"
env:
- ANSIBLE_VERSION=1.9.2
cache: bundler
#sudo: false
sudo: required
dist: trusty
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
Expand All @@ -10,11 +16,15 @@ before_install:
- wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
- sudo dpkg -i vagrant_1.6.3_x86_64.deb
install:
# - sudo pip install --no-use-wheel https://github.com/ansible/ansible/archive/devel.zip
- sudo pip install ansible
# Install Ansible.
- sudo pip install ansible==$ANSIBLE_VERSION

# Add ansible.cfg to pick up roles path.
#- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"

- sudo pip install https://github.com/diyan/pywinrm/archive/df049454a9309280866e0156805ccda12d71c93a.zip --upgrade
script:
- ansible --version
- sudo ansible --version
- export ANSIBLE_ROLES_PATH="../"
- echo localhost > inventory
- vagrant --version
Expand Down
5 changes: 5 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; needed to bypass self-signed certificates on windows
[defaults]
bin_ansible_callbacks=True
callback_plugins = ./callback_plugins
library = ./library
8 changes: 8 additions & 0 deletions callback_plugins/fix-ssl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import ssl
if hasattr(ssl, '_create_default_https_context') and hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context

class CallbackModule(object):
pass

# needed to bypass self-signed certificates for winrm
Loading

0 comments on commit 0d9e7de

Please sign in to comment.