This commit is contained in:
Mark Janssen 2025-04-19 16:24:47 +02:00
parent 6cff97e2bb
commit d0cd352b4a
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
5 changed files with 49 additions and 13 deletions

14
.ansible-lint Normal file
View file

@ -0,0 +1,14 @@
#warn_list: # or 'skip_list' to silence them completely
skip_list:
- experimental
- var-naming[no-role-prefix]
- name
warn_list:
- '204' # Lines should be no longer than 160 chars
- no-handler
- ignore-errors
- fqcn-builtins
- fqcn
- partial-become[task]
- template-instead-of-copy
offline: true

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.password-store
.gitignore
.envrc

View file

@ -15,3 +15,8 @@ rules:
max-spaces-after: -1 max-spaces-after: -1
commas: commas:
max-spaces-after: -1 max-spaces-after: -1
comments:
min-spaces-from-content: 1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true

View file

@ -1,66 +1,79 @@
--- ---
- hosts: all - name: common
hosts: all
gather_facts: true gather_facts: true
roles: roles:
- { role: "common", tags: ["common"] } - { role: "common", tags: ["common"] }
- { role: "nft", tags: ["nft"] } - { role: "nft", tags: ["nft"] }
- hosts: bank - name: bank
hosts: bank
roles: roles:
- { role: "bank", tags: ["bank"] } - { role: "bank", tags: ["bank"] }
- hosts: homeassistant - name: homeassistant
hosts: homeassistant
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "nginx", tags: ["nginx"] } - { role: "nginx", tags: ["nginx"] }
- hosts: raspi - name: raspi
hosts: raspi
roles: roles:
- { role: "raspi", tags: ["raspi"] } - { role: "raspi", tags: ["raspi"] }
- { role: "bank-terminal", tags: ["bank-terminal"] } - { role: "bank-terminal", tags: ["bank-terminal"] }
- hosts: fotos - name: fotos
hosts: fotos
roles: roles:
- { role: "photos", tags: ["photos"] } - { role: "photos", tags: ["photos"] }
- hosts: git-ci - name: CI
hosts: git-ci
roles: roles:
- { role: "git-ci", tags: ["git-ci"] } - { role: "git-ci", tags: ["git-ci"] }
- hosts: git - name: git
hosts: git
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "nginx", tags: ["nginx"] } - { role: "nginx", tags: ["nginx"] }
- { role: "git-server", tags: ["git-server"] } - { role: "git-server", tags: ["git-server"] }
- hosts: monitoring - name: monitoring
hosts: monitoring
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "nginx", tags: ["nginx"] } - { role: "nginx", tags: ["nginx"] }
- { role: "monitoring", tags: ["monitoring"] } - { role: "monitoring", tags: ["monitoring"] }
- hosts: mqtt - name: mqtt
hosts: mqtt
roles: roles:
- { role: "mqtt", tags: ["mqtt"] } - { role: "mqtt", tags: ["mqtt"] }
- hosts: music - name: music
hosts: music
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "go", tags: ["go"] } - { role: "go", tags: ["go"] }
- { role: "music", tags: ["music"] } - { role: "music", tags: ["music"] }
- hosts: pad - name: pad
hosts: pad
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "nginx", tags: ["nginx"] } - { role: "nginx", tags: ["nginx"] }
- { role: "etherpad", tags: ["etherpad"] } - { role: "etherpad", tags: ["etherpad"] }
- hosts: services - name: services
hosts: services
roles: roles:
- { role: "services", tags: ["services"] } - { role: "services", tags: ["services"] }
- hosts: wiki - name: wiki
hosts: wiki
roles: roles:
- { role: "acme", tags: ["acme"] } - { role: "acme", tags: ["acme"] }
- { role: "nginx", tags: ["nginx"] } - { role: "nginx", tags: ["nginx"] }

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
j2lint `find ./ -type f -name '*.j2'` j2lint `find ./ -type f -name '*.j2'`
yamllint -c .yamllint.yaml .
ansible-lint bitlair.yaml ansible-lint bitlair.yaml