docker: ansible-lint

This commit is contained in:
uumas
2023-07-14 15:34:29 +03:00
parent 1596b2bfc5
commit 79b8e4fa27
5 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
- name: Converge
hosts: all
roles:
- docker

View File

@@ -0,0 +1,15 @@
---
dependency:
name: galaxy
driver:
name: podman
platforms:
- name: bullseye
image: git.uumas.fi/uumas/molecule-testbed:bullseye
command: /lib/systemd/systemd
pre_build_image: true
privileged: true
provisioner:
name: ansible
verifier:
name: ansible

View File

@@ -0,0 +1,14 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Docker hello world container
community.docker.docker_container:
name: hello-world
image: hello-world
detach: false
cleanup: true
register: docker_hello_world