51ac23cebe
Add more molecule coverage by running the role in check mode. Change-Id: I9b73c19b1d9449e1c0956673bcb2114675920f97
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
---
|
|
driver:
|
|
name: delegated
|
|
options:
|
|
managed: false
|
|
login_cmd_template: >-
|
|
ssh
|
|
-o UserKnownHostsFile=/dev/null
|
|
-o StrictHostKeyChecking=no
|
|
-o Compression=no
|
|
-o TCPKeepAlive=yes
|
|
-o VerifyHostKeyDNS=no
|
|
-o ForwardX11=no
|
|
-o ForwardAgent=no
|
|
{instance}
|
|
ansible_connection_options:
|
|
ansible_connection: ssh
|
|
|
|
log: true
|
|
|
|
platforms:
|
|
- name: instance
|
|
|
|
provisioner:
|
|
name: ansible
|
|
config_options:
|
|
defaults:
|
|
fact_caching: jsonfile
|
|
fact_caching_connection: /tmp/molecule/facts
|
|
inventory:
|
|
hosts:
|
|
all:
|
|
hosts:
|
|
instance:
|
|
ansible_host: localhost
|
|
log: true
|
|
env:
|
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH:-/usr/share/ansible/roles}:${HOME}/zuul-jobs/roles"
|
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
|
|
|
scenario:
|
|
test_sequence:
|
|
- prepare
|
|
- converge
|
|
- check
|
|
|
|
verifier:
|
|
name: testinfra
|