summaryrefslogtreecommitdiffstats
path: root/ansible/roles/nexus/molecule
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nexus/molecule')
-rw-r--r--ansible/roles/nexus/molecule/default/molecule.yml11
-rw-r--r--ansible/roles/nexus/molecule/ubuntu/molecule.yml11
2 files changed, 10 insertions, 12 deletions
diff --git a/ansible/roles/nexus/molecule/default/molecule.yml b/ansible/roles/nexus/molecule/default/molecule.yml
index e38640d4..735bf1bb 100644
--- a/ansible/roles/nexus/molecule/default/molecule.yml
+++ b/ansible/roles/nexus/molecule/default/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infrastructure-server
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -22,11 +25,7 @@ provisioner:
inventory:
links:
group_vars: ../../../../group_vars
- lint:
- name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
- lint:
- name: flake8
diff --git a/ansible/roles/nexus/molecule/ubuntu/molecule.yml b/ansible/roles/nexus/molecule/ubuntu/molecule.yml
index 9955e7d5..d882633a 100644
--- a/ansible/roles/nexus/molecule/ubuntu/molecule.yml
+++ b/ansible/roles/nexus/molecule/ubuntu/molecule.yml
@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
-lint:
- name: yamllint
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
platforms:
- name: infrastructure-server
image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
@@ -22,8 +25,6 @@ provisioner:
inventory:
links:
group_vars: ../../../../group_vars
- lint:
- name: ansible-lint
playbooks:
prepare: ../default/prepare.yml
converge: ../default/playbook.yml
@@ -32,5 +33,3 @@ scenario:
name: ubuntu
verifier:
name: testinfra
- lint:
- name: flake8