Skip to content

Commit

Permalink
Added pre-commit and Ansible roles/collection requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlesmithjr committed Jun 4, 2023
1 parent c7f3218 commit ac2451f
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
!*

### Ansible
.cache/

### VirtualEnv ###
# Virtualenv
.venv/
venv/

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

.vscode/

.DS_Store
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, develop, --branch, master, --branch, main]
- id: trailing-whitespace
- repo: https://github.com/ansible-community/ansible-lint
rev: v6.17.0
hooks:
- id: ansible-lint
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
4 changes: 3 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ galaxy_info:
author: Larry Smith Jr.
description: Ansible role to install/configure Netdata
license: MIT
namespace: mrlesmithjr
role_name: netdata

min_ansible_version: 2.0
min_ansible_version: "2.0"

platforms:
- name: EL
Expand Down
5 changes: 5 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
collections:
- name: community.docker
version: "*" # Need to ensure that the latest version is installed or Molecule fails
roles: []

0 comments on commit ac2451f

Please sign in to comment.