Skip to content

Commit

Permalink
added testing for more distros
Browse files Browse the repository at this point in the history
added workaround for ubuntu testing
remove Ubuntu 15.04 (vivid) from meta.yml because it's not LTS release and geerlingguy don't have docker container for it
  • Loading branch information
Evgenii Vasilenko committed Jun 7, 2019
1 parent e2f7380 commit 027577f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ services: docker

env:
matrix:
- MOLECULE_DISTRO: centos6
- MOLECULE_DISTRO: centos7
# - MOLECULE_DISTRO: ubuntu1804
# - MOLECULE_DISTRO: debian9
- MOLECULE_DISTRO: ubuntu1604
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: debian8

install:
# Install test dependencies.
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ galaxy_info:
- 11.0
- name: Ubuntu
versions:
- vivid
- xenial
- bionic
- name: Debian
versions:
- jessie
Expand Down
20 changes: 20 additions & 0 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
---
- name: Converge
hosts: all

# workaround: until geerlingguy/docker-ubuntu* containers doesn't have iproute2 package
pre_tasks:
- name: workaround for ansible_default_ipv4
block:
- name: update apt cache
apt:
update_cache: yes
cache_valid_time: 3600
- name: Ensure that iproute2 package is installed
apt:
name: iproute2
- name: Gather Facts network subset
setup:
gather_subset:
- network
when:
- ansible_distribution == 'Ubuntu'
- ansible_default_ipv4 is undefined

roles:
- role: ansible-consul

Expand Down

0 comments on commit 027577f

Please sign in to comment.