Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wookietreiber committed Nov 13, 2024
0 parents commit c110838
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -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]

...
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

version: 2

updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: '06:00'
assignees:
- wookietreiber

...
30 changes: 30 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -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

...
31 changes: 31 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -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

...
46 changes: 46 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -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

...
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ansible Collection - idiv_biodiversity.systemd
25 changes: 25 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---

Check warning on line 1 in galaxy.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

galaxy[no-changelog]

No changelog found. Please add a changelog file. Refer to the galaxy.md file for more info.

namespace: idiv_biodiversity
name: systemd
version: 0.1.0
readme: README.md
authors:
- Christian Krause <[email protected]>
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

...
5 changes: 5 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

requires_ansible: '>=2.15.0'

...

0 comments on commit c110838

Please sign in to comment.