Skip to content

Commit

Permalink
Versions Update, cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed May 30, 2023
1 parent b3488e1 commit 952cded
Show file tree
Hide file tree
Showing 26 changed files with 180 additions and 229 deletions.
6 changes: 6 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ exclude_paths:
- ./.cache
- ./.github
- ./requirements.yml

skip_list:
- yaml[truthy]

enable_list:
- name[prefix]
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
github: buluma
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)

Please consider [sponsoring me](https://github.com/sponsors/buluma).
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ Why is this feature required?
## Additional context

Add any other context about the feature request here.

Please consider [sponsoring me](https://github.com/sponsors/buluma).
2 changes: 1 addition & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
repository:
description: Install and configure openssh on your system.
homepage: https://buluma.github.io/
topics: openssh, ansible, molecule, tox, playbook, hacktoberfest
topics: openssh, ansible, molecule, tox, playbook
1 change: 0 additions & 1 deletion .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ jobs:
uses: buluma/galaxy-action@v6.25.22
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
git_branch: main
34 changes: 15 additions & 19 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
name: Ansible Molecule

on:
# Schedule updates (once weekly)
schedule:
- cron: '29 15/16 * * 0,1'
workflow_dispatch:
push:
branches:
- master
- main
- testing
paths-ignore:
- '**/README.md'
- '**/CHANGELOG.md'
tags_ignore:
- '*'
pull_request:
schedule:
- cron: '29 15 15 * *'

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand All @@ -28,12 +30,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: molecule
uses: buluma/molecule-action@v5.0.1
with:
command: lint
- name: ansible-lint
uses: ansible-community/ansible-lint-action@main
test:
needs:
- lint
Expand All @@ -47,27 +45,25 @@ jobs:
- image: "amazonlinux"
tag: "latest"
- image: "enterpriselinux"
tag: "latest"
tag: "8"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
tag: "buster"
- image: "fedora-systemd"
tag: "34"
tag: "36"
- image: "fedora-systemd"
tag: "35"
tag: "37"
- image: "fedora-systemd"
tag: "latest"
- image: "docker-opensuse-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"
- image: "docker-ubuntu-systemd"
tag: "jammy"
tag: "bionic"
- image: "kali"
tag: "latest"
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -78,7 +74,7 @@ jobs:
- name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
uses: buluma/molecule-action@v5.0.1
uses: buluma/molecule-action@v5.0.7
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
13 changes: 4 additions & 9 deletions .github/workflows/requirements2png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,22 @@
#

on:
workflow_dispatch:
push: {branches: ["master", "main"]}


concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
- push

name: Ansible Graphviz

jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: ${{ github.repository }}
- name: create png
uses: buluma/graphviz-action@1.0.0
uses: buluma/graphviz-action@1.0.0 # TODO: Update action
- name: Commit files
run: |
cd ${{ github.repository }}
Expand All @@ -34,7 +30,6 @@ jobs:
- name: save to png branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: ${{ github.repository }}
force: true
branch: png
11 changes: 3 additions & 8 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@ name: "TODO 2 Issue"
on:
push:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
runs-on: "ubuntu-20.04"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "buluma/todo-to-issue-action@v1.0.1"
uses: "alstr/todo-to-issue-action@v2.3" # TODO: Update buluma/todo-to-issue-action@v1.0.1 @buluma
id: "todo"
with:
USER_PROJECTS: buluma/Ansible/To do
PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
63 changes: 11 additions & 52 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,85 +1,44 @@
---
image: "buluma/github-action-molecule:4.0.9"

services:
- docker:dind
image: "buluma/github-action-molecule:5.0.7"

variables:
DOCKER_HOST: "tcp://docker:2375"
PY_COLORS: 1

molecule:
stage: build
allow_failure: true
script:
- if [ -f tox.ini ] ; then tox ; fi
- if [ ! -f tox.ini ] ; then molecule test ; fi
rules:
- if: $CI_COMMIT_REF_NAME == "main"
retry: 1
- if: $CI_COMMIT_REF_NAME == "master"
parallel:
matrix:
- image: "alpine-openrc"
tag: "latest"
- image: "amazonlinux"
tag: "latest"
- image: "enterpriselinux"
tag: "latest"
tag: "8"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
tag: "buster"
- image: "fedora-systemd"
tag: "34"
tag: "36"
- image: "fedora-systemd"
tag: "35"
tag: "37"
- image: "fedora-systemd"
tag: "latest"
- image: "docker-opensuse-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"
- image: "docker-ubuntu-systemd"
tag: "jammy"
tag: "bionic"
- image: "kali"
tag: "latest"

testing:
stage: test
needs: []
galaxy:
script:
- if [ -f tox.ini ] ; then tox ; fi
- if [ ! -f tox.ini ] ; then molecule test ; fi
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} buluma ${CI_PROJECT_NAME}
rules:
- if: $CI_COMMIT_REF_NAME == "testing"
retry: 1
parallel:
matrix:
- image: "alpine-openrc"
tag: "latest"
- image: "amazonlinux"
tag: "latest"
- image: "enterpriselinux"
tag: "latest"
- image: "debian-systemd"
tag: "latest"
- image: "debian-systemd"
tag: "buster"
- image: "fedora-systemd"
tag: "34"
- image: "fedora-systemd"
tag: "35"
- image: "fedora-systemd"
tag: "latest"
- image: "docker-opensuse-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "latest"
- image: "docker-ubuntu-systemd"
tag: "bionic"
- image: "docker-ubuntu-systemd"
tag: "focal"
- image: "docker-ubuntu-systemd"
tag: "jammy"
- if: $CI_COMMIT_TAG != null
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3
rev: v1.29.0
hooks:
- id: yamllint
args: [-c=.yamllint]
Expand All @@ -19,7 +19,6 @@ repos:
- id: ansible_role_find_unused_variable
- id: ansible_role_find_empty_files
- id: ansible_role_find_empty_directories
- id: ansible_role_fix_readability
- id: ansible_role_find_undefined_handlers
- id: ansible_role_find_unquoted_values
- id: ansible_role_find_horizontal_when
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ In the comment-box, you can [refer to the issue number](https://help.github.com/
Now I'll get a message that you've added some code. Thank you, really.

CI starts to test your changes. You can follow the progress on GitHub.

Please consider [sponsoring me](https://github.com/sponsors/buluma).
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Apache License
Version 2.0, 07 2022
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Expand Down Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Michael Buluma (me@buluma.me.ke)
Copyright 2023 Shadow Walker (bulumaknight@gmail.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 952cded

Please sign in to comment.