Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@ script:
# Run container in detached state.
- 'docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:rw ${run_opts} geerlingguy/docker-${distro}-ansible:latest "${init}" > "${container_id}"'

# Avoid pip bug https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1658844
- 'docker exec "$(cat ${container_id})" ansible-galaxy install tersmitten.pip'

# Ansible syntax check.
- 'docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/test.yml --syntax-check'

# Fix pip - see https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1658844
- 'docker exec "$(cat ${container_id})" apt-get update'
- 'docker exec "$(cat ${container_id})" apt-get install -y python-pip'
- 'docker exec "$(cat ${container_id})" python -m pip install -U pip'
- 'docker exec "$(cat ${container_id})" pip install -U pip setuptools'

# Test role.
- 'docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/role_under_test/tests/test.yml'

Expand Down
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ galaxy_info:
- web
galaxy_tags:
- letsencrypt
dependencies: []
dependencies:
- tersmitten.pip
3 changes: 1 addition & 2 deletions tasks/client.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
- name: Operating system dependencies
apt: name={{ item }} state=present
apt: name={{ item }} state=present update_cache=yes
with_items:
- build-essential
- libssl-dev
- libffi-dev
- python-dev
- git
- python-pip
- python-virtualenv
- dialog
- libaugeas0
Expand Down