-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate standalone role to a collection
Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de>
- Loading branch information
Norman Ziegner
committed
Mar 18, 2024
1 parent
4ad48fa
commit ccea30a
Showing
35 changed files
with
732 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
skip_list: | ||
- 'var-naming[no-role-prefix]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
unattended_upgrades: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "roles/unattended_upgrades/**" | ||
- "molecule/unattended_upgrades/**" | ||
- ".github/workflows/unattended_upgrades.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "Test importing collection" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
import-galaxy: | ||
permissions: | ||
contents: "read" | ||
name: "Import collection with Galaxy importer" | ||
uses: "ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: "Pull Request Labeler" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- "labeled" | ||
- "unlabeled" | ||
- "opened" | ||
- "edited" | ||
- "synchronize" | ||
|
||
jobs: | ||
labeler: | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- uses: "actions/labeler@v5" | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: "Ansible Lint" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'roles/**' | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "v*.*.*" | ||
paths: | ||
- 'roles/**' | ||
|
||
env: | ||
PY_COLORS: 1 | ||
ANSIBLE_FORCE_COLOR: 1 | ||
|
||
jobs: | ||
|
||
ansible-lint: | ||
name: "Ansible Lint" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out the codebase." | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Lint code." | ||
uses: "ansible/ansible-lint@v24.2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: "Release new version on Ansible Galaxy" | ||
|
||
on: | ||
release: | ||
types: | ||
- "released" | ||
|
||
jobs: | ||
|
||
release: | ||
name: "Release new version on Ansible Galaxy" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Deploy the collection" | ||
uses: "artis3n/ansible_galaxy_collection@v2.10.1" | ||
with: | ||
api_key: "${{ secrets.galaxy_api_key }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
user=hifis-net | ||
project=ansible-role-unattended-upgrades | ||
since-tag=v1.12.2 | ||
since-tag=v3.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.