Skip to content

Commit

Permalink
test: molecule 3
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed May 1, 2020
1 parent bc8400d commit c5a34a1
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
---
language: python
python: "2.7"
python: "3.8"
sudo: required
services:
- docker
Expand Down
2 changes: 2 additions & 0 deletions README.md
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/viasite-ansible/ansible-role-site-discovery.svg?branch=master)](https://travis-ci.org/viasite-ansible/ansible-role-site-discovery)

Install [viasite/site-discovery](https://github.com/viasite/site-discovery).

Tested on Ubuntu 16.04, 18.04, 20.04. Requires Python 3.
5 changes: 3 additions & 2 deletions meta/main.yml
Expand Up @@ -4,12 +4,13 @@ galaxy_info:
company: Viasite
description: Site discovery tools for virtual hostings
license: MIT
min_ansible_version: 2.0
min_ansible_version: 2.8
platforms:
- name: Ubuntu
versions:
- trusty
- xenial
- bionic
- focal
galaxy_tags:
- system
- drupal
Expand Down
7 changes: 0 additions & 7 deletions molecule/default/Dockerfile.j2

This file was deleted.

File renamed without changes.
47 changes: 0 additions & 47 deletions molecule/default/create.yml

This file was deleted.

16 changes: 0 additions & 16 deletions molecule/default/destroy.yml

This file was deleted.

13 changes: 9 additions & 4 deletions molecule/default/molecule.yml
Expand Up @@ -3,11 +3,16 @@ driver:
name: docker
platforms:
- name: ansible-role-site-discovery-1604
image: ubuntu:16.04
image: geerlingguy/docker-ubuntu1604-ansible
pre_build_image: true

lint:
name: yamllint
enabled: False
- name: ansible-role-site-discovery-1804
image: geerlingguy/docker-ubuntu1804-ansible
pre_build_image: true

- name: ansible-role-site-discovery-2004
image: geerlingguy/docker-ubuntu2004-ansible
pre_build_image: true

provisioner:
name: ansible
4 changes: 4 additions & 0 deletions molecule/default/prepare.yml
Expand Up @@ -8,3 +8,7 @@
content: "Acquire::http::Proxy \"{{ lookup('env', 'APT_PROXY') }}\"; Acquire::https::Proxy \"false\";"
dest: /etc/apt/apt.conf.d/01proxy
failed_when: False
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 86400

0 comments on commit c5a34a1

Please sign in to comment.