From ca0791fe8147f2b2930ebedcdb441d8956f367d2 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 8 Jul 2022 15:12:08 -0700 Subject: [PATCH] init --- .github/ISSUE_TEMPLATE/bug-name.md | 24 +++++++++++++ .github/ISSUE_TEMPLATE/rfe-name.md | 23 +++++++++++++ .gitlab/issue_templates/Bug.md | 16 +++++++++ .gitlab/issue_templates/RFE.md | 15 ++++++++ LICENSE | 18 ++++++++++ README.md | 55 ++++++++++++++++++++++++++++++ ansible.cfg | 22 ++++++++++++ callback_plugins/README.md | 1 + files/README.md | 1 + filter_plugins/README.md | 1 + inventory/group_vars/README.md | 1 + inventory/host_vars/README.md | 1 + library/README.md | 1 + roles/README.md | 2 ++ tasks/README.md | 1 + templates/README.md | 1 + 16 files changed, 183 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-name.md create mode 100644 .github/ISSUE_TEMPLATE/rfe-name.md create mode 100644 .gitlab/issue_templates/Bug.md create mode 100644 .gitlab/issue_templates/RFE.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 ansible.cfg create mode 100644 callback_plugins/README.md create mode 100644 files/README.md create mode 100644 filter_plugins/README.md create mode 100644 inventory/group_vars/README.md create mode 100644 inventory/host_vars/README.md create mode 100644 library/README.md create mode 100644 roles/README.md create mode 100644 tasks/README.md create mode 100644 templates/README.md diff --git a/.github/ISSUE_TEMPLATE/bug-name.md b/.github/ISSUE_TEMPLATE/bug-name.md new file mode 100644 index 0000000..981b8c4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-name.md @@ -0,0 +1,24 @@ +--- +name: "[BUG] NAME" +about: Create a bug report to help this hybrid thingy be bug free +title: '' +labels: bug +assignees: [] +--- + +**Below, describe the bug** +Here. + +**Console or Terminal Info (terminal output, strace, ldd, etc)** +If applicable, add terminal data here. + +**Distribution Version + Archictecture** + - Distribution: + - Arch: + - Ansible Version: + +**ansible configuration** +Provide ansible configuration (ansible.cfg) if applicable. + +**ansible vars used** +Provide the ansible vars you used for the playbooks. If you created your own playbook, also provide that. diff --git a/.github/ISSUE_TEMPLATE/rfe-name.md b/.github/ISSUE_TEMPLATE/rfe-name.md new file mode 100644 index 0000000..59e46c9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/rfe-name.md @@ -0,0 +1,23 @@ +--- +name: "[RFE] NAME" +about: Suggest an idea for this hybrid thingy +title: '' +labels: enhancement +assignees: [] +--- + +**Preliminary questions** +- [ ] Is there already a PR open for this? +- [ ] Have you ensured that this feature is not already included? + +**Is this RFE related to a problem or a bug? Describe and reference it below.** +Describe it here. + +**What is your proposed idea or solution?** +Proposal. + +**What are the benefits of this?** + +**Additional context and information** +Add additional information here, if possible. + diff --git a/.gitlab/issue_templates/Bug.md b/.gitlab/issue_templates/Bug.md new file mode 100644 index 0000000..a079175 --- /dev/null +++ b/.gitlab/issue_templates/Bug.md @@ -0,0 +1,16 @@ +## Below, describe the bug +Here. + +## Console or Terminal Info (terminal output, strace, ldd, etc) +If applicable, add terminal data here. + +## Distribution Version + Archictecture + - Distribution: + - Arch: + - Ansible Version: + +## ansible configuration +Provide ansible configuration (ansible.cfg) if applicable. + +## ansible vars used +Provide the ansible vars you used for the playbooks. If you created your own playbook, also provide that. diff --git a/.gitlab/issue_templates/RFE.md b/.gitlab/issue_templates/RFE.md new file mode 100644 index 0000000..2441ed0 --- /dev/null +++ b/.gitlab/issue_templates/RFE.md @@ -0,0 +1,15 @@ +## Preliminary questions +* [ ] Is there already a PR open for this? +* [ ] Have you ensured that this feature is not already included? + +## Is this RFE related to a problem or a bug? Describe and reference it below. +Describe it here. + +## What is your proposed idea or solution? +Proposal. + +## What are the benefits of this? + +## Additional context and information +Add additional information here, if possible. + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cb1b841 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +Copyright 2021 Louis Abel + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e42e22 --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +Hybrid Template +=============== + +Ultimately, this is meant to be run by itself on an ansible box or imported as a project into tower (being careful with your tower settings). Right now it is built to be ran on an ansible box that is not tower. + +Playbooks will sit in the root. + +Requirements +------------ + +List below the requirements for your hybrid structure below. + +Dependencies +------------ + +No dependencies currently. + +Playbook Structure +------------------ + +At a minimum, a pre task section should be added. + +``` + pre_tasks: + - name: Check if ansible cannot be run here + stat: + path: /etc/no-ansible + register: no_ansible + + - name: Verify if we can run ansible + assert: + that: + - "not no_ansible.stat.exists" + success_msg: "We are able to run on this node" + fail_msg: "/etc/no-ansible exists - skipping run on this node" + + # Import roles/tasks here +``` + +Post tasks are at the discretion of those who are working on this repo. + +Vars +---- + +Var information here, which will be expected for your hybrid structure. + +License +------- + +MIT + +Author Information +------------------ + +Louis Abel @nazunalika diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..9e09962 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,22 @@ +[defaults] +force_color = 1 +nocows = True +ansible_managed = Ansible Managed (Hybrid) +command_warnings = True +display_args_to_stdout = False +display_skipped_hosts = false +strategy = free +forks = 3 +retry_files_enabled = False +gathering = smart +fact_caching = memory +fact_caching_timeout = 1800 +no_log = False +log_path = tmp/ansible.log +known_hosts = tmp/known_hosts +roles_path = roles +collections_paths = collections + +[ssh_connection] +# Disable GSSAPI, which slows down SSH connections for ansible +ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s -o GSSAPIAuthentication=no diff --git a/callback_plugins/README.md b/callback_plugins/README.md new file mode 100644 index 0000000..64d55fb --- /dev/null +++ b/callback_plugins/README.md @@ -0,0 +1 @@ +Callback plugins go here diff --git a/files/README.md b/files/README.md new file mode 100644 index 0000000..87ed3a0 --- /dev/null +++ b/files/README.md @@ -0,0 +1 @@ +Files go here diff --git a/filter_plugins/README.md b/filter_plugins/README.md new file mode 100644 index 0000000..bff2429 --- /dev/null +++ b/filter_plugins/README.md @@ -0,0 +1 @@ +Filter plugins go here diff --git a/inventory/group_vars/README.md b/inventory/group_vars/README.md new file mode 100644 index 0000000..7bcde07 --- /dev/null +++ b/inventory/group_vars/README.md @@ -0,0 +1 @@ +Group vars here diff --git a/inventory/host_vars/README.md b/inventory/host_vars/README.md new file mode 100644 index 0000000..6a65612 --- /dev/null +++ b/inventory/host_vars/README.md @@ -0,0 +1 @@ +Host vars here diff --git a/library/README.md b/library/README.md new file mode 100644 index 0000000..7728246 --- /dev/null +++ b/library/README.md @@ -0,0 +1 @@ +Library diff --git a/roles/README.md b/roles/README.md new file mode 100644 index 0000000..e355ddd --- /dev/null +++ b/roles/README.md @@ -0,0 +1,2 @@ +Custom roles, as it applies to this, go here. Of course, they'll likely appear +if you are pulling them in in another way, based on `ansible.cfg` diff --git a/tasks/README.md b/tasks/README.md new file mode 100644 index 0000000..5f7fef6 --- /dev/null +++ b/tasks/README.md @@ -0,0 +1 @@ +Tasks come here, if they don't apply to a role or whatever. diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 0000000..25a2632 --- /dev/null +++ b/templates/README.md @@ -0,0 +1 @@ +Templates go here