Skip to content

Commit

Permalink
improve yaml linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jan 31, 2021
1 parent 31a004b commit 8dbad09
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# These are supported funding model platforms

github: [do1jlr]
Expand Down
12 changes: 6 additions & 6 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 150
max: 180
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 changes: 28 additions & 28 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
- name: check if ansible is not to old
hosts: localhost
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
hosts: all
roles:
- { role: base, tags: [default,packages,base]}
- { role: ranger, tags: [packages,ranger]}
- { 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: base, tags: [default, packages, base]}
- {role: ranger, tags: [packages, ranger]}
- {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'}

- name: user specific roles for all hosts
hosts: all
roles:
- { role: users, tags: [default,init,users]}
- { role: dotfiles, tags: [default,dotfiles]}
- { role: ssh_auth, tags: [default,init,users]}
- { role: sshd, tags: [default,init,users]}
- { role: geerlingguy.firewall, tags: [default,firewall], become: true}
- { role: robertdebock.fail2ban, tags: [default,fail2ban], become: true}
- {role: users, tags: [default, init, users]}
- {role: dotfiles, tags: [default, dotfiles]}
- {role: ssh_auth, tags: [default, init, users]}
- {role: sshd, tags: [default, init, users]}
- {role: geerlingguy.firewall, tags: [default, firewall], become: true}
- {role: robertdebock.fail2ban, tags: [default, fail2ban], become: true}

- name: deploy web config
hosts: web
roles:
- { role: webhost2, tags: [web,webhost]}
- { role: acmetool_fix, tags: [web,acmetool]}
- { role: acmetool2, tags: [web,acmetool]}
- { role: nginx2, tags: [web,nginx]}
- { role: geerlingguy.mysql, tags: [web,git,mysql]}
- { role: gitea, tags: [web,gitea,git]}
- { role: goaccess, tags: [web,goaccess]}
- {role: webhost2, tags: [web, webhost]}
- {role: acmetool_fix, tags: [web, acmetool]}
- {role: acmetool2, tags: [web, acmetool]}
- {role: nginx2, tags: [web, nginx]}
- {role: geerlingguy.mysql, tags: [web, git, mysql]}
- {role: gitea, tags: [web, gitea, git]}
- {role: goaccess, tags: [web, goaccess]}

- name: deploy mail config
hosts: mail
roles:
- { role: unbound, tags: [mail,unbound]}
- { role: geerlingguy.mysql, tags: [mail,mysql,mariadb]}
- { role: acmetool_fix, tags: [mail,acmetool]}
- { role: webhost2, tags: [mail,webhost]}
- { role: acmetool2, tags: [mail,acmetool]}
- { role: nginx2, tags: [mail,nginx]}
- { role: do1jlr.mailserver_preperation, tags: [mail,mailserver_preperation,prep,mailserver]}
- { role: do1jlr.dovecot, tags: [mail,dovecot,mailserver_dovecot]}
- { role: postfix, tags: [mail,postfix]}
- { role: do1jlr.rspamd, tags: [mail,rspamd,dcim]}
- {role: unbound, tags: [mail, unbound]}
- {role: geerlingguy.mysql, tags: [mail, mysql, mariadb]}
- {role: acmetool_fix, tags: [mail, acmetool]}
- {role: webhost2, tags: [mail, webhost]}
- {role: acmetool2, tags: [mail, acmetool]}
- {role: nginx2, tags: [mail, nginx]}
- {role: do1jlr.mailserver_preperation, tags: [mail, mailserver_preperation, prep, mailserver]}
- {role: do1jlr.dovecot, tags: [mail, dovecot, mailserver_dovecot]}
- {role: postfix, tags: [mail, postfix]}
- {role: do1jlr.rspamd, tags: [mail, rspamd]}

0 comments on commit 8dbad09

Please sign in to comment.