Fix a little.

This commit is contained in:
Robert de Bock 2020-10-31 11:52:56 +01:00
parent 32027a3d20
commit f0358c18aa
3 changed files with 28 additions and 15 deletions

View File

@ -1,4 +0,0 @@
#!/usr/bin/sh
yamllint .
ansible-lint

View File

@ -0,0 +1,20 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint
args: [-c=.yamllint]
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.3.5
hooks:
- id: ansible-lint
pass_filenames: false

View File

@ -153,17 +153,15 @@
when: when:
travis_secure.stdout is defined travis_secure.stdout is defined
- name: create .github directory - name: create .github directories
file: file:
path: "{{ role_path }}/.github" path: "{{ role_path }}/{{ item }}"
state: directory
mode: "0755"
- name: create .github/workflows directory
file:
path: "{{ role_path }}/.github/workflows"
state: directory state: directory
mode: "0755" mode: "0755"
loop:
- .github
- .github/workflows
- .github/ISSUE_TEMPLATE
- name: copy file - name: copy file
copy: copy:
@ -181,9 +179,8 @@
dest: .yamllint dest: .yamllint
- source: FUNDING.yml - source: FUNDING.yml
dest: .github/FUNDING.yml dest: .github/FUNDING.yml
- source: pre-commit - source: pre-commit-config.yaml
dest: .git/hooks/pre-commit dest: .pre-commit-config.yaml
mode: "0755"
loop_control: loop_control:
label: "{{ item.source }}" label: "{{ item.source }}"