summaryrefslogtreecommitdiffstats
path: root/ansible/roles/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/nfs')
-rw-r--r--ansible/roles/nfs/.yamllint1
-rw-r--r--ansible/roles/nfs/molecule/default/molecule.yml11
-rw-r--r--ansible/roles/nfs/molecule/ubuntu/molecule.yml11
3 files changed, 11 insertions, 12 deletions
diff --git a/ansible/roles/nfs/.yamllint b/ansible/roles/nfs/.yamllint
index ad0be760..c5ae64be 100644
--- a/ansible/roles/nfs/.yamllint
+++ b/ansible/roles/nfs/.yamllint
@@ -1,3 +1,4 @@
+---
extends: default
rules:
diff --git a/ansible/roles/nfs/molecule/default/molecule.yml b/ansible/roles/nfs/molecule/default/molecule.yml
index 9af32360..e41b8a7d 100644
--- a/ansible/roles/nfs/molecule/default/molecule.yml
+++ b/ansible/roles/nfs/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: kubernetes-node-1
image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
@@ -41,11 +44,7 @@ provisioner:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
- lint:
- name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
- lint:
- name: flake8
diff --git a/ansible/roles/nfs/molecule/ubuntu/molecule.yml b/ansible/roles/nfs/molecule/ubuntu/molecule.yml
index 3fe393fc..61728cde 100644
--- a/ansible/roles/nfs/molecule/ubuntu/molecule.yml
+++ b/ansible/roles/nfs/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: kubernetes-node-1
image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
@@ -40,8 +43,6 @@ provisioner:
links:
group_vars: ../../../../group_vars
host_vars: ../default/host_vars
- lint:
- name: ansible-lint
playbooks:
prepare: ../default/prepare.yml
converge: ../default/playbook.yml
@@ -49,6 +50,4 @@ scenario:
name: ubuntu
verifier:
name: testinfra
- lint:
- name: flake8
directory: ../default/tests