From 2fc7061e3637a3bb77080038e125ebc90cad383f Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 17 Jul 2021 09:44:02 +0200 Subject: [PATCH] add support file --- .drone.yml | 19 +++++++++++++++++++ .markdownlint.yaml | 9 +++++++++ .yamllint | 11 +++++++++++ tests/test.yml | 6 ++++++ 4 files changed, 45 insertions(+) create mode 100644 .drone.yml create mode 100644 .markdownlint.yaml create mode 100644 .yamllint create mode 100644 tests/test.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cf05136 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ +--- +kind: pipeline +type: docker +name: lint + +steps: + - name: ansible linting + image: cytopia/ansible-lint + + commands: + - ansible-lint tasks/main.yml + - name: markdown linting + image: 06kellyjac/markdownlint-cli + commands: + - markdownlint . + when: + status: + - success + - failure diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..a085265 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,9 @@ +--- +# Default state for all rules +default: true +MD009: + strict: false + +MD013: false +MD033: false +MD024: false diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..c311c97 --- /dev/null +++ b/.yamllint @@ -0,0 +1,11 @@ +--- +extends: default + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning + allow-non-breakable-words: true + comments: + min-spaces-from-content: 1 diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..8447385 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,6 @@ +--- +- hosts: + - all + become: true + roles: + - ansible-role-certbot