standard molecule config

This commit is contained in:
Bertrand Lanson 2023-05-31 21:46:34 +02:00
parent 8cd01a4990
commit 55ff75a4ba
3 changed files with 26 additions and 4 deletions

View File

@ -3,5 +3,5 @@
hosts: all hosts: all
tasks: tasks:
- name: "Include ednxzu.deploy_adguard" - name: "Include ednxzu.deploy_adguard"
include_role: ansible.builtin.include_role:
name: "ednxzu.deploy_adguard" name: "ednxzu.deploy_adguard"

View File

@ -1,13 +1,37 @@
--- ---
dependency: dependency:
name: galaxy name: galaxy
options:
requirements-file: ./requirements.yml
driver: driver:
name: docker name: docker
platforms: platforms:
- name: instance - name: instance
image: quay.io/centos/centos:stream8 image: geerlingguy/docker-${MOLECULE_TEST_OS}-ansible
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
cgroupns_mode: host
privileged: true
pre_build_image: true pre_build_image: true
provisioner: provisioner:
name: ansible name: ansible
config_options:
defaults:
remote_tmp: /tmp/.ansible
verifier: verifier:
name: ansible name: ansible
scenario:
name: default
test_sequence:
- dependency
- cleanup
- destroy
- syntax
- create
- prepare
- converge
- idempotence
- verify
- cleanup
- destroy

View File

@ -1,6 +1,4 @@
--- ---
# This is an example playbook to execute Ansible tests.
- name: Verify - name: Verify
hosts: all hosts: all
gather_facts: false gather_facts: false