Initial commit

This commit is contained in:
Home
2021-09-17 00:04:39 +02:00
commit 1e984d21be
20 changed files with 850 additions and 0 deletions

View 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

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

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

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