Loading .gitignore +1 −9 Original line number Diff line number Diff line .ansible/ .git/ *.pyc *.pyo .molecule/ .tox/ *.log .venv/ venv/ .ansible .gitlab-ci.yml +10 −23 Original line number Diff line number Diff line --- # gitlab stages 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'" - "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" .markdownlint-cli2.jsonc +8 −4 Original line number Diff line number Diff line { // files to lint "globs": [ "readme.md" ], // linting rules "config": { "MD004": false, "MD013": false, "MD030": false, "MD033": false "MD013": { "line_length": 120 } } } .yamllint +25 −5 Original line number Diff line number Diff line --- extends: "default" extends: 'default' rules: line-length: max: 120 level: "warning" 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 meta/main.yaml +4 −2 Original line number Diff line number Diff line Loading @@ -2,7 +2,9 @@ galaxy_info: author: "siempie" description: "install and configure phpipam" description: "install phpipam" license: "MIT" role_name: "phpipam" dependencies: [] dependencies: - role: "docker" - role: "traefik" Loading
.gitignore +1 −9 Original line number Diff line number Diff line .ansible/ .git/ *.pyc *.pyo .molecule/ .tox/ *.log .venv/ venv/ .ansible
.gitlab-ci.yml +10 −23 Original line number Diff line number Diff line --- # gitlab stages 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'" - "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"
.markdownlint-cli2.jsonc +8 −4 Original line number Diff line number Diff line { // files to lint "globs": [ "readme.md" ], // linting rules "config": { "MD004": false, "MD013": false, "MD030": false, "MD033": false "MD013": { "line_length": 120 } } }
.yamllint +25 −5 Original line number Diff line number Diff line --- extends: "default" extends: 'default' rules: line-length: max: 120 level: "warning" 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
meta/main.yaml +4 −2 Original line number Diff line number Diff line Loading @@ -2,7 +2,9 @@ galaxy_info: author: "siempie" description: "install and configure phpipam" description: "install phpipam" license: "MIT" role_name: "phpipam" dependencies: [] dependencies: - role: "docker" - role: "traefik"