Initial Project import

This commit is contained in:
2021-05-02 17:12:46 +12:00
commit b12b212f6a
27 changed files with 762 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
*******
Docker driver installation guide
*******
Requirements
============
* Docker Engine
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[docker]'

View File

@@ -0,0 +1,10 @@
---
- name: Converge
hosts: all
tasks:
- name: "Include repo-almalinux"
include_role:
name: "repo-epel"
vars:
epel_specify_mirror: true
epel_mirror_url: https://someproxyormirror.org.nz

View File

@@ -0,0 +1,19 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: alma
image: docker.io/guisea/py-almalinux
pre_build_image: true
- name: centos7
image: docker.io/pycontribs/centos:7
pre_build_image: true
- name: centos8
image: docker.io/pycontribs/centos:8
pre_build_image: true
provisioner:
name: ansible
verifier:
name: ansible

View File

@@ -0,0 +1,25 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
tasks:
- name: Retrieve yum repofile
shell: cat /etc/yum.repos.d/epel.repo
ignore_errors: true
register: repofile
- name: metalink is not present
assert:
that:
- "'metalink=' not in repofile.stdout"
- name: baseurl is defined
assert:
that:
- "'baseurl=' in repofile.stdout"
- name: mirror is specified correctly
assert:
that:
- "'https://someproxyormirror.org.nz' in repofile.stdout"