From 1ede6797305254c0a23af08bce12f1b419967a06 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 23 Jan 2022 17:48:58 -0800 Subject: [PATCH] + Fixing docs and adding some sane defaults/tests --- docker-host/readme | 4 +++- docker-host/setup/defaults/main.yml | 3 +++ docker-host/setup/meta/main.yml | 31 +++++++++++++++++++++++++++++ docker-host/setup/tests/test.yml | 19 ++++++++++++++++++ 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 docker-host/setup/defaults/main.yml create mode 100644 docker-host/setup/meta/main.yml create mode 100644 docker-host/setup/tests/test.yml diff --git a/docker-host/readme b/docker-host/readme index d519a1b..59d3d22 100644 --- a/docker-host/readme +++ b/docker-host/readme @@ -13,4 +13,6 @@ What I use on my own lab server > Local DNS -> +> Git Tea for private Git service + + diff --git a/docker-host/setup/defaults/main.yml b/docker-host/setup/defaults/main.yml new file mode 100644 index 0000000..f644724 --- /dev/null +++ b/docker-host/setup/defaults/main.yml @@ -0,0 +1,3 @@ +--- +# defaults file for setup +LAB_FQDN: leftcoast.local diff --git a/docker-host/setup/meta/main.yml b/docker-host/setup/meta/main.yml new file mode 100644 index 0000000..f5d53f0 --- /dev/null +++ b/docker-host/setup/meta/main.yml @@ -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 diff --git a/docker-host/setup/tests/test.yml b/docker-host/setup/tests/test.yml new file mode 100644 index 0000000..f96f82e --- /dev/null +++ b/docker-host/setup/tests/test.yml @@ -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