mirror of
https://github.com/DO1JLR/ansible_playbook_servers.git
synced 2024-09-14 19:53:56 +02:00
improve yaml linting
This commit is contained in:
parent
31a004b77e
commit
8dbad0934d
3 changed files with 35 additions and 34 deletions
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
github: [do1jlr]
|
github: [do1jlr]
|
||||||
|
|
12
.yamllint
12
.yamllint
|
@ -4,11 +4,11 @@ extends: default
|
||||||
rules:
|
rules:
|
||||||
# 150 chars should be enough, but don't fail if a line is longer
|
# 150 chars should be enough, but don't fail if a line is longer
|
||||||
line-length:
|
line-length:
|
||||||
max: 150
|
max: 180
|
||||||
level: warning
|
level: warning
|
||||||
commas:
|
|
||||||
max-spaces-before: 0
|
|
||||||
min-spaces-after: 0
|
|
||||||
braces:
|
|
||||||
max-spaces-inside: 1
|
|
||||||
|
|
||||||
|
ignore: |
|
||||||
|
host_vars/mail01.l3d.space/vault.yml
|
||||||
|
host_vars/web01.l3d.space/vault.yml
|
||||||
|
group_vars/all/vault.yml
|
||||||
|
roles/
|
||||||
|
|
56
site.yml
56
site.yml
|
@ -2,48 +2,48 @@
|
||||||
- name: check if ansible is not to old
|
- name: check if ansible is not to old
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- { role: do1jlr.ansible_version, tags: [default,version,default,always], gather_facts: false}
|
- {role: do1jlr.ansible_version, tags: [default, version, default, always], gather_facts: false}
|
||||||
|
|
||||||
|
|
||||||
- name: general roles for all hosts
|
- name: general roles for all hosts
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- { role: base, tags: [default,packages,base]}
|
- {role: base, tags: [default, packages, base]}
|
||||||
- { role: ranger, tags: [packages,ranger]}
|
- {role: ranger, tags: [packages, ranger]}
|
||||||
- { role: bat, tags: [packages,bat], when: [ansible_os_family == 'Debian']}
|
- {role: bat, tags: [packages, bat], when: [ansible_os_family == 'Debian']}
|
||||||
- { role: unattended_upgrades, tags: [default,unattended,unattended_upgrades,security], become: true, when: ansible_distribution == 'Debian'}
|
- {role: unattended_upgrades, tags: [default, unattended, unattended_upgrades, security], become: true, when: ansible_distribution == 'Debian'}
|
||||||
|
|
||||||
- name: user specific roles for all hosts
|
- name: user specific roles for all hosts
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- { role: users, tags: [default,init,users]}
|
- {role: users, tags: [default, init, users]}
|
||||||
- { role: dotfiles, tags: [default,dotfiles]}
|
- {role: dotfiles, tags: [default, dotfiles]}
|
||||||
- { role: ssh_auth, tags: [default,init,users]}
|
- {role: ssh_auth, tags: [default, init, users]}
|
||||||
- { role: sshd, tags: [default,init,users]}
|
- {role: sshd, tags: [default, init, users]}
|
||||||
- { role: geerlingguy.firewall, tags: [default,firewall], become: true}
|
- {role: geerlingguy.firewall, tags: [default, firewall], become: true}
|
||||||
- { role: robertdebock.fail2ban, tags: [default,fail2ban], become: true}
|
- {role: robertdebock.fail2ban, tags: [default, fail2ban], become: true}
|
||||||
|
|
||||||
- name: deploy web config
|
- name: deploy web config
|
||||||
hosts: web
|
hosts: web
|
||||||
roles:
|
roles:
|
||||||
- { role: webhost2, tags: [web,webhost]}
|
- {role: webhost2, tags: [web, webhost]}
|
||||||
- { role: acmetool_fix, tags: [web,acmetool]}
|
- {role: acmetool_fix, tags: [web, acmetool]}
|
||||||
- { role: acmetool2, tags: [web,acmetool]}
|
- {role: acmetool2, tags: [web, acmetool]}
|
||||||
- { role: nginx2, tags: [web,nginx]}
|
- {role: nginx2, tags: [web, nginx]}
|
||||||
- { role: geerlingguy.mysql, tags: [web,git,mysql]}
|
- {role: geerlingguy.mysql, tags: [web, git, mysql]}
|
||||||
- { role: gitea, tags: [web,gitea,git]}
|
- {role: gitea, tags: [web, gitea, git]}
|
||||||
- { role: goaccess, tags: [web,goaccess]}
|
- {role: goaccess, tags: [web, goaccess]}
|
||||||
|
|
||||||
- name: deploy mail config
|
- name: deploy mail config
|
||||||
hosts: mail
|
hosts: mail
|
||||||
roles:
|
roles:
|
||||||
- { role: unbound, tags: [mail,unbound]}
|
- {role: unbound, tags: [mail, unbound]}
|
||||||
- { role: geerlingguy.mysql, tags: [mail,mysql,mariadb]}
|
- {role: geerlingguy.mysql, tags: [mail, mysql, mariadb]}
|
||||||
- { role: acmetool_fix, tags: [mail,acmetool]}
|
- {role: acmetool_fix, tags: [mail, acmetool]}
|
||||||
- { role: webhost2, tags: [mail,webhost]}
|
- {role: webhost2, tags: [mail, webhost]}
|
||||||
- { role: acmetool2, tags: [mail,acmetool]}
|
- {role: acmetool2, tags: [mail, acmetool]}
|
||||||
- { role: nginx2, tags: [mail,nginx]}
|
- {role: nginx2, tags: [mail, nginx]}
|
||||||
- { role: do1jlr.mailserver_preperation, tags: [mail,mailserver_preperation,prep,mailserver]}
|
- {role: do1jlr.mailserver_preperation, tags: [mail, mailserver_preperation, prep, mailserver]}
|
||||||
- { role: do1jlr.dovecot, tags: [mail,dovecot,mailserver_dovecot]}
|
- {role: do1jlr.dovecot, tags: [mail, dovecot, mailserver_dovecot]}
|
||||||
- { role: postfix, tags: [mail,postfix]}
|
- {role: postfix, tags: [mail, postfix]}
|
||||||
- { role: do1jlr.rspamd, tags: [mail,rspamd,dcim]}
|
- {role: do1jlr.rspamd, tags: [mail, rspamd]}
|
||||||
|
|
Loading…
Reference in a new issue