2020-12-12 23:03:33 +01:00
|
|
|
---
|
|
|
|
|
2020-12-22 23:53:15 +01:00
|
|
|
- name: general roles for all hosts
|
2020-12-12 23:03:33 +01:00
|
|
|
hosts: all
|
|
|
|
roles:
|
|
|
|
- { role: base, tags: [default,packages,base]}
|
|
|
|
- { role: ranger, tags: [packages,ranger]}
|
|
|
|
- { role: bat, tags: [packages,bat], when: [ansible_os_family == 'Debian']}
|
2020-12-22 23:53:15 +01:00
|
|
|
|
|
|
|
- name: user specific roles for all hosts
|
|
|
|
hosts: all
|
|
|
|
roles:
|
|
|
|
- { role: users, tags: [default,users]}
|
2020-12-12 23:03:33 +01:00
|
|
|
- { role: dotfiles, tags: [default,dotfiles]}
|
2020-12-22 23:53:15 +01:00
|
|
|
- { role: ssh_auth, tags: [default,users]}
|
|
|
|
- { role: sshd, tags: [default,users]}
|
2020-12-31 20:29:38 +01:00
|
|
|
- { role: geerlingguy.firewall, tags: [default,firewall], become: true}
|
|
|
|
- { role: robertdebock.fail2ban, tags: [default,fail2ban], become: true}
|
2020-12-23 01:17:14 +01:00
|
|
|
|
|
|
|
- name: deploy web config
|
|
|
|
hosts: web
|
|
|
|
roles:
|
2020-12-23 17:09:14 +01:00
|
|
|
- { role: webhost2, tags: [web,webhost]}
|
2020-12-23 20:02:06 +01:00
|
|
|
- { role: acmetool_fix, tags: [web,acmetool]}
|
2020-12-23 01:17:14 +01:00
|
|
|
- { role: acmetool2, tags: [web,acmetool]}
|
|
|
|
- { role: nginx2, tags: [web,nginx]}
|
2021-01-04 21:52:10 +01:00
|
|
|
- { role: geerlingguy.mysql, tags: [web,git,mysql]}
|
|
|
|
- { role: gitea, tags: [web,gitea,git]}
|
2020-12-24 02:38:51 +01:00
|
|
|
- { role: goaccess, tags: [web,goaccess]}
|
2021-01-01 02:52:42 +01:00
|
|
|
|
2021-01-02 02:03:34 +01:00
|
|
|
- name: deploy mail config
|
|
|
|
hosts: mail
|
|
|
|
roles:
|
2021-01-02 02:26:33 +01:00
|
|
|
- { role: mailserver_preperation, tags: [mail,mailserver_preperation,prep,mailserver]}
|
2021-01-02 06:27:07 +01:00
|
|
|
- { role: unbound, tags: [mail,unbound]}
|
2021-01-02 22:19:16 +01:00
|
|
|
- { role: webhost2, tags: [mail,webhost]}
|
|
|
|
- { role: acmetool_fix, tags: [mail,acmetool]}
|
|
|
|
- { role: acmetool2, tags: [mail,acmetool]}
|
|
|
|
- { role: nginx2, tags: [mail,nginx]}
|
2021-01-02 22:37:59 +01:00
|
|
|
- { role: geerlingguy.mysql, tags: [mail,mysql,mariadb]}
|
2021-01-10 03:15:31 +01:00
|
|
|
- { role: robertdebock.dovecot, tags: [mail,dovecot]}
|
|
|
|
- { role: mailserver_dovecot, tags: [mail,dovecot,mailserver_dovecot]}
|