From c11083894c4fe986a962a58965a6dfd488b41a47 Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Wed, 13 Nov 2024 16:03:11 +0100 Subject: [PATCH] initial commit --- .config/ansible-lint.yml | 12 ++++++++ .github/dependabot.yml | 16 +++++++++++ .github/workflows/ansible-lint.yml | 30 +++++++++++++++++++ .github/workflows/review.yml | 31 ++++++++++++++++++++ .yamllint | 46 ++++++++++++++++++++++++++++++ LICENSE | 21 ++++++++++++++ README.md | 1 + galaxy.yml | 25 ++++++++++++++++ meta/runtime.yml | 5 ++++ 9 files changed, 187 insertions(+) create mode 100644 .config/ansible-lint.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ansible-lint.yml create mode 100644 .github/workflows/review.yml create mode 100644 .yamllint create mode 100644 LICENSE create mode 100644 README.md create mode 100644 galaxy.yml create mode 100644 meta/runtime.yml diff --git a/.config/ansible-lint.yml b/.config/ansible-lint.yml new file mode 100644 index 0000000..9c78cc1 --- /dev/null +++ b/.config/ansible-lint.yml @@ -0,0 +1,12 @@ +--- + +profile: production + +warn_list: + - galaxy[no-changelog] # until I'm comfortable doing that + - galaxy[version-incorrect] # until collection gets bumped to 1.x + +skip_list: + - name[casing] + +... diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..699e207 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +--- + +version: 2 + +updates: + + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + day: monday + time: '06:00' + assignees: + - wookietreiber + +... diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml new file mode 100644 index 0000000..82449b9 --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,30 @@ +--- + +name: ansible-lint + +on: + pull_request: + paths: + - .github/workflows/ansible-lint.yml + - galaxy.yml + - meta + - roles + push: + branches: + - main + - wip/next + paths: + - .github/workflows/ansible-lint.yml + - galaxy.yml + - meta + - roles + +jobs: + + ansible-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ansible/ansible-lint@v24 + +... diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 0000000..a83c354 --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,31 @@ +--- + +name: review + +on: [pull_request] + +jobs: + + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-yamllint@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + yamllint_flags: '.' + + ansible-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - uses: reviewdog/action-ansiblelint@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + +... diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..c989780 --- /dev/null +++ b/.yamllint @@ -0,0 +1,46 @@ +--- + +yaml-files: + - '*.yaml' + - '*.yml' + - '.yamllint' + - '.ansible-lint' + +extends: default + +rules: + braces: + min-spaces-inside: 0 + max-spaces-inside: 1 + brackets: + max-spaces-inside: 1 + colons: + max-spaces-after: -1 + commas: + min-spaces-after: 1 + max-spaces-after: -1 + comments: + require-starting-space: yes + min-spaces-from-content: 1 + comments-indentation: no + document-start: + present: yes + document-end: + present: yes + empty-lines: + max: 1 + key-duplicates: enable + line-length: + max: 79 + new-lines: + type: unix + octal-values: + forbid-implicit-octal: yes + forbid-explicit-octal: yes + truthy: + allowed-values: ['yes', 'no'] + check-keys: no + ignore: >- + .github/workflows + +... diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..08a20e2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 German Centre for Integrative Biodiversity Research (iDiv) + +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..a90388b --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Ansible Collection - idiv_biodiversity.systemd diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 0000000..25f764a --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,25 @@ +--- + +namespace: idiv_biodiversity +name: systemd +version: 0.1.0 +readme: README.md +authors: + - Christian Krause +description: install and configure systemd components +license_file: LICENSE +tags: + - linux + - systemd +dependencies: { } +repository: https://github.com/idiv-biodiversity/ansible-collection-systemd +documentation: https://github.com/idiv-biodiversity/ansible-collection-systemd +homepage: https://github.com/idiv-biodiversity/ansible-collection-systemd +issues: https://github.com/idiv-biodiversity/ansible-collection-systemd/issues +build_ignore: + - .config + - .github + - .yamllint + - roles/*/molecule + +... diff --git a/meta/runtime.yml b/meta/runtime.yml new file mode 100644 index 0000000..cf06393 --- /dev/null +++ b/meta/runtime.yml @@ -0,0 +1,5 @@ +--- + +requires_ansible: '>=2.15.0' + +...