commit 0714d6791f4fe968bc40722a9be775370d42c81b Author: Wallun Date: Fri Dec 17 18:07:47 2021 +0100 feat(task): install yay-bin diff --git a/.gitlint b/.gitlint new file mode 100644 index 0000000..ffe2403 --- /dev/null +++ b/.gitlint @@ -0,0 +1,25 @@ +[general] +verbosity=3 +ignore-merge-commits=false +ignore-revert-commits=false +ignore-fixup-commits=false +ignore-squash-commits=false +ignore-stdin=true +staged=false +debug=false + +contrib=contrib-title-conventional-commits + +ignore=T5,title-must-not-contain-word,B6,body-is-missing + +[title-max-length] +line-length=50 + +[title-min-length] +min-length=10 + +[body-max-line-length] +line-length=72 + +[contrib-title-conventional-commits] +types = build,chore,ci,docs,fix,feat,perf,refactor,revert,style,test diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ab0ac40 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +--- +default_stages: [ commit, manual ] + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: no-commit-to-branch + args: [ --branch, main ] + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: trailing-whitespace + args: [ --markdown-linebreak-ext=md ] + - id: end-of-file-fixer + - id: fix-byte-order-marker + + - repo: https://github.com/ansible-community/ansible-lint.git + rev: v5.2.1 + hooks: + - id: ansible-lint + + - repo: https://github.com/jorisroovers/gitlint + rev: v0.16.0 + hooks: + - id: gitlint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..a05d4e6 --- /dev/null +++ b/.yamllint @@ -0,0 +1,64 @@ +--- +rules: + braces: + forbid: false + min-spaces-inside: 1 + max-spaces-inside: 1 + min-spaces-inside-empty: 0 + max-spaces-inside-empty: 0 + brackets: + forbid: false + min-spaces-inside: 1 + max-spaces-inside: 1 + min-spaces-inside-empty: 0 + max-spaces-inside-empty: 0 + colons: + max-spaces-before: 0 + max-spaces-after: 1 + commas: + max-spaces-before: 0 + min-spaces-after: 1 + max-spaces-after: 1 + comments: + require-starting-space: true + ignore-shebangs: true + min-spaces-from-content: 2 + comments-indentation: {} + document-end: + present: false + level: error + document-start: + present: true + level: error + empty-lines: + max: 2 + max-start: 0 + max-end: 0 + empty-values: + forbid-in-block-mappings: true + forbid-in-flow-mappings: true + hyphens: + max-spaces-after: 1 + indentation: + spaces: 2 + indent-sequences: true + check-multi-line-strings: false + key-duplicates: {} + line-length: + max: 80 + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: false + new-lines: + type: unix + octal-values: + forbid-implicit-octal: true + forbid-explicit-octal: true + quoted-strings: + quote-type: any + required: only-when-needed + extra-required: [] + extra-allowed: [] + trailing-spaces: {} + truthy: + allowed-values: [ 'true', 'false' ] + check-keys: true diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b669a7 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# yay-bin + +This role install yay-bin using the aur module. + +# Example playbook + +```yaml +--- +- name: install yay-bin + hosts: "all" + roles: + - role: yay-bin +``` + +# License + +GPLv3 + +# Author information + +Wallun diff --git a/tasks/main.yaml b/tasks/main.yaml new file mode 100644 index 0000000..5f9f181 --- /dev/null +++ b/tasks/main.yaml @@ -0,0 +1,6 @@ +--- +- name: aur | install yay-bin + aur: + use: makepkg + name: yay-bin + state: present diff --git a/vars/main.yaml b/vars/main.yaml new file mode 100644 index 0000000..4c1a93d --- /dev/null +++ b/vars/main.yaml @@ -0,0 +1,2 @@ +--- +yay_version: 0.1.0