Create Role

This commit is contained in:
nono
2022-04-20 17:14:35 +02:00
parent 27caf9156c
commit a08f49a53a
16 changed files with 294 additions and 2 deletions

View 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'

View 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"

View 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

View 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

View 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