Commit 718146cd authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: initial commit

parents
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
+9 −0
Original line number Diff line number Diff line
.ansible/
.git/
*.pyc
*.pyo
.molecule/
.tox/
*.log
.venv/
venv/

.gitlab-ci.yml

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

stages:
  - lint
  - test

variables:
  ANSIBLE_FORCE_COLOR: "true"

ansible-lint:
  stage: lint
  image: "registry.gitlab.com/siempie/ansible-runner:latest"
  script:
    - "ansible-lint"
  rules:
    - if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
    - if: "$CI_COMMIT_BRANCH == 'main'"

molecule:
  stage: test
  image: "registry.gitlab.com/siempie/ansible-runner:latest"
  script:
    - "molecule test"
  rules:
    - if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
    - if: "$CI_COMMIT_BRANCH == 'main'"
+8 −0
Original line number Diff line number Diff line
{
  "config": {
    "MD004": false,
    "MD013": false,
    "MD030": false,
    "MD033": false
  }
}

.yamllint

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

extends: "default"

rules:
  line-length:
    max: 120
    level: "warning"
  indentation:
    spaces: 2