+ Fixing docs and adding some sane defaults/tests
This commit is contained in:
parent
3b2b89db01
commit
1ede679730
@ -13,4 +13,6 @@ What I use on my own lab server
|
||||
|
||||
> Local DNS
|
||||
|
||||
>
|
||||
> Git Tea for private Git service
|
||||
|
||||
|
||||
|
3
docker-host/setup/defaults/main.yml
Normal file
3
docker-host/setup/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
# defaults file for setup
|
||||
LAB_FQDN: leftcoast.local
|
31
docker-host/setup/meta/main.yml
Normal file
31
docker-host/setup/meta/main.yml
Normal file
@ -0,0 +1,31 @@
|
||||
galaxy_info:
|
||||
author: shockrah
|
||||
description: This role provides multiple tools for setting up a private lab server
|
||||
company: Personal
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
# next line and provide a value
|
||||
# issue_tracker_url: http://example.com/issue/tracker
|
||||
|
||||
license: GPL-3.0-only
|
||||
|
||||
min_ansible_version: 2.1
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- Sid
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies:
|
||||
- community.docker
|
19
docker-host/setup/tests/test.yml
Normal file
19
docker-host/setup/tests/test.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
tasks:
|
||||
- name: Normal Echo
|
||||
command: echo Quick test of an echo
|
||||
register: normal_echo
|
||||
|
||||
- debug:
|
||||
var: normal_echo.stdout
|
||||
|
||||
- name: Checking Sudo access
|
||||
become: yes
|
||||
command: echo One more test with sudo this time
|
||||
register: sudo_echo
|
||||
|
||||
- debug:
|
||||
var: sudo_echo.stdout
|
||||
- debug:
|
||||
var: sudo_echo.stderr
|
Loading…
Reference in New Issue
Block a user