Added pipeline

This commit is contained in:
2022-10-31 23:24:42 +13:00
parent 142c70337a
commit f5d9f9d7f8
4 changed files with 84 additions and 29 deletions

View File

@@ -5,11 +5,11 @@ dependency:
driver:
name: docker
platforms:
- name: instance
image: docker.io/guisea/docker-ubuntu22.04-ansible
command: /usr/bin/systemctl
- name: ${MOLECULE_DISTRO:-ubuntu2204}
image: docker.io/guisea/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
pre_build_image: true
provisioner:
name: ansible
verifier:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}

View File

@@ -1,18 +0,0 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: fetch /etc/apt/sources.list
command: cat /etc/apt/sources.list
register: sources
- name: Output info
debug:
var: sources
- name: Example assertion
ansible.builtin.assert:
that: true