Commit 128c4253 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

added molecule tests

parent d2c5d64e
*********************************
Vagrant driver installation guide
*********************************
Requirements
============
* Vagrant
* Virtualbox, Parallels, VMware Fusion, VMware Workstation or VMware Desktop
Install
=======
Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
.. code-block:: bash
$ pip install 'molecule_vagrant'
---
- name: Converge
hosts: all
tasks:
- name: "test install package.www"
sdm.oor.call_role:
name: "package.www"
- name: "test configure package.www"
sdm.oor.call_role:
name: "package.www"
tasks: "configure"
---
dependency:
name: galaxy
enabled: False
driver:
name: podman
platforms:
- name: instance
image: docker.io/alpine:latest
command: "/sbin/init"
pre_build_image: yes
provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: sdm.oor.sdmoor
stdout_callback: sdm.oor.sdmdefault
strategy: sdm.oor.sdmlinear
vars_plugins_enabled: sdm.common.sdm_host_group_vars
deprecation_warnings: False
remote_tmp: /tmp
playbooks:
create: create.yml
converge: converge.yml
destroy: destroy.yml
prepare: prepare.yml
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint -x sdm.oor.call_tasks .
---
- name: Prepare
hosts: all
gather_facts: False
tasks:
- name: install python"
raw: apk add python3
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment