1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00
ansible_playbook_servers/site.yml
2021-01-01 02:52:42 +01:00

33 lines
1 KiB
YAML

---
- 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']}
- name: user specific roles for all hosts
hosts: all
roles:
- { role: users, tags: [default,users]}
- { role: dotfiles, tags: [default,dotfiles]}
- { role: ssh_auth, tags: [default,users]}
- { role: sshd, tags: [default,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: goaccess, tags: [web,goaccess]}
#- name: deploy mail config
# hosts: mail
# roles:
# - { role: postfix, tags: [mail,postfix]}
# - { role: dovecot, tags: [mail,dovecot]}