Build Windows Templates in RHV
This commit is contained in:
39
roles/systemli.apt_repositories/molecule/docker/INSTALL.rst
Normal file
39
roles/systemli.apt_repositories/molecule/docker/INSTALL.rst
Normal file
@@ -0,0 +1,39 @@
|
||||
*******
|
||||
Install
|
||||
*******
|
||||
|
||||
This set of playbooks have specific dependencies on Ansible due to the modules
|
||||
being used.
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
* Ansible 2.2 or higher
|
||||
* Docker Engine
|
||||
* docker-py
|
||||
|
||||
Install OS dependencies on Debian 9 (Stretch)
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# apt-get update
|
||||
# apt-get install -y python-pip libssl-dev python-docker
|
||||
## If installing Molecule from source.
|
||||
# apt-get install -y libffi-dev git
|
||||
|
||||
Install OS dependencies on Ubuntu 16.x
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install -y python-pip libssl-dev docker-engine
|
||||
# If installing Molecule from source.
|
||||
$ sudo apt-get install -y libffi-dev git
|
||||
|
||||
Install using pip:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ sudo pip install ansible
|
||||
$ sudo pip install docker-py
|
||||
$ sudo pip install molecule --pre
|
||||
19
roles/systemli.apt_repositories/molecule/docker/molecule.yml
Normal file
19
roles/systemli.apt_repositories/molecule/docker/molecule.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: instance
|
||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian10}-ansible:latest"
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
provisioner:
|
||||
name: ansible
|
||||
playbooks:
|
||||
converge: ../default/converge.yml
|
||||
Reference in New Issue
Block a user