From 38d92236cef500ef18b54beee74504b7309884c0 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 09:30:18 +0200 Subject: [PATCH 1/5] add .yammlint --- .yamllint | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .yamllint 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 From 7b73c82d07c63e57f7cf46b06df69d00132e844a Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:38:42 +0200 Subject: [PATCH 2/5] add .drone.yml --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b8e35cd --- /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 + - name: markdown linting + image: 06kellyjac/markdownlint-cli + commands: + - markdownlint . + when: + status: + - success + - failure From 97b3248e7a5ba151ff29de88afdd9b35c3120bcc Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:54:18 +0200 Subject: [PATCH 3/5] add .markdownlint.yaml --- .markdownlint.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .markdownlint.yaml 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 From 5756c3c063cf51ea715ed120b7cd64bbfda8a708 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 11:02:55 +0200 Subject: [PATCH 4/5] add task role path to ansible-lint --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b8e35cd..cf05136 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: image: cytopia/ansible-lint commands: - - ansible-lint + - ansible-lint tasks/main.yml - name: markdown linting image: 06kellyjac/markdownlint-cli commands: From 5030864cb68079ca5aa924b048240cb0111a3a5a Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 18 Aug 2021 19:29:38 +0200 Subject: [PATCH 5/5] change pacman to package --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index bcb545e..84596df 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- - name: Ensure php is installed. - pacman: + package: name: - php - php-fpm