Create Role
This commit is contained in:
23
molecule/default/INSTALL.rst
Normal file
23
molecule/default/INSTALL.rst
Normal file
@@ -0,0 +1,23 @@
|
||||
*********************************
|
||||
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'
|
||||
10
molecule/default/converge.yml
Normal file
10
molecule/default/converge.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Converge
|
||||
become: yes
|
||||
hosts: all
|
||||
vars_files:
|
||||
- vars.yml
|
||||
tasks:
|
||||
- name: "Include ansible-role-hugo-deploy"
|
||||
include_role:
|
||||
name: "ansible-role-hugo-deploy"
|
||||
16
molecule/default/molecule.yml
Normal file
16
molecule/default/molecule.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: vagrant
|
||||
provider:
|
||||
name: virtualbox
|
||||
platforms:
|
||||
- name: instance
|
||||
box: debian/bullseye64
|
||||
memory: 512
|
||||
cpus: 1
|
||||
provisioner:
|
||||
name: ansible
|
||||
verifier:
|
||||
name: ansible
|
||||
6
molecule/default/vars.yml
Normal file
6
molecule/default/vars.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
hugo_deploy_site_url: "localhost"
|
||||
hugo_deploy_website_git_url: ""
|
||||
hugo_deploy_download_path: "/opt/hugo_deploy"
|
||||
hugo_deploy_build_openring: yes
|
||||
10
molecule/default/verify.yml
Normal file
10
molecule/default/verify.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# This is an example playbook to execute Ansible tests.
|
||||
|
||||
- name: Verify
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Example assertion
|
||||
assert:
|
||||
that: true
|
||||
Reference in New Issue
Block a user