Initial commit
This commit is contained in:
19
molecule/default/converge.yml
Normal file
19
molecule/default/converge.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Converge
|
||||
hosts: all
|
||||
become: true
|
||||
# Set default variables (if any)
|
||||
vars: []
|
||||
|
||||
# Use pre_tasks when you need a setup to be executed each time you run converge.
|
||||
# Otherwise, 'prepare.yml' is the way to go
|
||||
#
|
||||
# pre_tasks:
|
||||
# - name: "Set up docker on the machine"
|
||||
# include_role:
|
||||
# name: "docker_repository"
|
||||
|
||||
roles:
|
||||
- role: ansible-clean-vagrant
|
||||
become: true
|
||||
28
molecule/default/molecule.yml
Normal file
28
molecule/default/molecule.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
options:
|
||||
role-file: requirements.yml
|
||||
driver:
|
||||
name: vagrant
|
||||
provider:
|
||||
name: virtualbox
|
||||
platforms:
|
||||
- name: ubuntu-2004
|
||||
box: generic/ubuntu2004
|
||||
memory: 8192
|
||||
cpus: 4
|
||||
instance_raw_config_args:
|
||||
# Forward the necessary ports for your app (if any)
|
||||
#
|
||||
- "vm.network 'forwarded_port', guest: 1880, host: 1880"
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
become: true
|
||||
verifier:
|
||||
name: ansible
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint .
|
||||
20
molecule/default/prepare.yml
Normal file
20
molecule/default/prepare.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
become: True
|
||||
gather_facts: False
|
||||
tasks:
|
||||
# Make sure we have Ansible installed
|
||||
#
|
||||
- name: "Install ansible"
|
||||
apt:
|
||||
name: ansible
|
||||
state: present
|
||||
become: true
|
||||
|
||||
# Install docker (and update repos)
|
||||
#
|
||||
- name: "Set up docker on the machine"
|
||||
include_role:
|
||||
name: "linux.install_docker"
|
||||
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