Skip to content

Commit

Permalink
Merge pull request #16 from kevincoakley/4.2.3
Browse files Browse the repository at this point in the history
4.2.3
  • Loading branch information
kevincoakley authored Mar 10, 2021
2 parents a60bdcc + 5e74cc7 commit 212fcc4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Molecule Test
on: [push]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
molecule_distro: ['centos7', 'centos8', 'ubuntu1804']
molecule_distro: ['centos7', 'centos8', 'ubuntu1804', 'ubuntu2004']
env:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks

Expand All @@ -21,7 +21,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible-lint==4.3.7 flake8 molecule docker
pip install ansible ansible-lint flake8 molecule molecule-docker docker
ansible --version
ansible-lint --version
molecule --version
- name: Test with molecule
run: |
molecule test --all
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ansible-role-neo4j

![](https://github.com/kevincoakley/ansible-role-neo4j/workflows/Molecule%20Test/badge.svg)

Install Neo4j - https://www.neo4j.com . Tested with Neo4j 4.0.3 on CentOS 7, CentOS 8 and Ubuntu 18.04.
Install Neo4j - https://www.neo4j.com . Tested with Neo4j 4.2.3 on CentOS 7, CentOS 8, Ubuntu 18.04 and Ubuntu 20.04.

Requirements
------------
Expand Down
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
galaxy_info:
role_name: neo4j
namespace: kevincoakley
author: Kevin Coakley
description: Install Neo4j (http://neo4j.com/)
license: BSD
Expand Down Expand Up @@ -28,6 +29,7 @@ galaxy_info:
- name: Ubuntu
versions:
- bionic
- focal

galaxy_tags:
- database
Expand Down
5 changes: 5 additions & 0 deletions molecule/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
warn_list:
- internal-error
skip_list:
- yaml
9 changes: 0 additions & 9 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@

roles:
- role: ansible-role-neo4j

post_tasks:
- name: Give the Neo4j time to start
pause: seconds=30

- name: Verify that Neo4j is running on port 7474
uri:
url: http://127.0.0.1:7474/
status_code: 200
11 changes: 5 additions & 6 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ driver:
lint: |
set -e
yamllint -c molecule/yaml-lint.yml .
ansible-lint
ansible-lint -c molecule/ansible-lint.yml .
flake8
platforms:
- name: instance
Expand All @@ -24,11 +24,10 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
log: false
options:
vvv: false
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
name: ansible
10 changes: 10 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Verify
hosts: all
become: true

tasks:
- name: Verify that Neo4j is running on port 7474
uri:
url: http://127.0.0.1:7474/
status_code: 200

0 comments on commit 212fcc4

Please sign in to comment.