ansible-nas/tests/molecule/base.yml
2023-04-11 23:30:30 +01:00

53 lines
1.5 KiB
YAML

---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: instance
image: geerlingguy/docker-ubuntu2204-ansible:latest
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
pre_build_image: true
provisioner:
name: ansible
inventory:
group_vars:
all:
samba_shares_root: /tmp/ansible-nas/shares
ansible_nas_domain: ansible-nas.io
ansible_nas_timezone: Europe/London
audiobooks_root: /tmp/ansible-nas/shares/audiobooks
books_root: /tmp/ansible-nas/shares/books
code_root: /tmp/ansible-nas/shares/code
comics_root: /tmp/ansible-nas/shares/comics
docker_home: /tmp/ansible-nas/docker
documents_root: /tmp/ansible-nas/shares/documents
downloads_root: /tmp/ansible-nas/shares/downloads
movies_root: /tmp/ansible-nas/shares/movies
music_root: /tmp/ansible-nas/shares/music
photos_root: /tmp/ansible-nas/shares/photos
podcasts_root: /tmp/ansible-nas/shares/podcasts
torrents_root: /tmp/ansible-nas/shares/torrents
tv_root: /tmp/ansible-nas/shares/tv
playbooks:
prepare: ../../../../tests/molecule/resources/playbooks/prepare.yml
converge: ../../../../tests/molecule/resources/playbooks/converge.yml
verifier:
name: ansible
scenario:
test_sequence:
- cleanup
- destroy
- syntax
- create
- prepare
- converge
- idempotence
- verify
- side_effect
- verify verify_stopped.yml
- cleanup
- destroy