32 lines
601 B
YAML
32 lines
601 B
YAML
|
|
---
|
||
|
|
# Molecule configuration for Ansible role testing
|
||
|
|
|
||
|
|
driver:
|
||
|
|
name: docker
|
||
|
|
|
||
|
|
platforms:
|
||
|
|
- name: ubuntu-22.04
|
||
|
|
image: geerlingguy/docker-ubuntu2204-ansible:latest
|
||
|
|
pre_build_image: true
|
||
|
|
privileged: true
|
||
|
|
volumes:
|
||
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||
|
|
|
||
|
|
provisioner:
|
||
|
|
name: ansible
|
||
|
|
config_options:
|
||
|
|
defaults:
|
||
|
|
gathering: smart
|
||
|
|
fact_caching: jsonfile
|
||
|
|
fact_caching_connection: /tmp/ansible_facts
|
||
|
|
fact_caching_timeout: 3600
|
||
|
|
deprecation_warnings: false
|
||
|
|
|
||
|
|
verifier:
|
||
|
|
name: ansible
|
||
|
|
directory: molecule/default/tests
|
||
|
|
|
||
|
|
lint: |
|
||
|
|
yamllint .
|
||
|
|
ansible-lint
|