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]}
|
2020-12-24 02:38:51 +01:00
|
|
|
- { role: goaccess, tags: [web,goaccess]}
|
2021-01-01 02:52:42 +01:00
|
|
|
|
|
|
|
#- name: deploy mail config
|
|
|
|
# hosts: mail
|
|
|
|
# roles:
|
|
|
|
# - { role: postfix, tags: [mail,postfix]}
|
|
|
|
# - { role: dovecot, tags: [mail,dovecot]}
|