Commit a28b2084 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: initial commit

parent f23023d8
Loading
Loading
Loading
Loading
Loading

.ansible-lint

0 → 100644
+23 −0
Original line number Diff line number Diff line
---

exclude_paths:
  - ".gitlab/*"
  - ".gitlab-ci.yml"
  - "defaults/main.yaml"
  - "meta/main.yaml"
  - "vars/*"

kinds:
  - playbook: "**/*.{yml,yaml}"

skip_list:
  - "command-shell"
  - "experimental"
  - "git-latest"
  - "no-changed-when"
  - "no-handler"
  - "name[casing]"
  - "name[template]"
  - "risky-file-permissions"
  - "schema[playbook]"
  - "var-naming[no-role-prefix]"

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
.ansible

.gitlab-ci.yml

0 → 100644
+13 −0
Original line number Diff line number Diff line
---

# gitlab stages
stages:
  - "gitleaks"
  - "linting"

# include components
include:
  - component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3"
  - component: "$CI_SERVER_FQDN/components/gitleaks/gitleaks@v1.0.0"
  - component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
  - component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"
+12 −0
Original line number Diff line number Diff line
{
  // files to lint
  "globs": [
    "readme.md"
  ],
  // linting rules
  "config": {
    "MD013": {
      "line_length": 120
    }
  }
}

.yamllint

0 → 100644
+30 −0
Original line number Diff line number Diff line
---
extends: 'default'

rules:
  braces:
    max-spaces-inside: 1
    forbid: true
  comments:
    min-spaces-from-content: 1
  comments-indentation: false
  empty-lines:
    max: 2
  indentation:
    spaces: 2
    check-multi-line-strings: true
  line-length:
    max: 120
    allow-non-breakable-words: true
    allow-non-breakable-inline-mappings: true
  new-line-at-end-of-file: 'enable'
  octal-values:
    forbid-implicit-octal: true
    forbid-explicit-octal: true
  truthy:
    allowed-values:
      - 'true'
      - 'false'
  quoted-strings:
    quote-type: 'any'
    required: true
Loading