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

71 lines
2.7 KiB
YAML
Raw Permalink Normal View History

2020-12-12 23:03:33 +01:00
---
2022-10-11 20:39:03 +02:00
- name: Check if ansible is not to old
hosts: localhost
roles:
2023-10-29 22:28:04 +01:00
- {role: do1jlr.ansible_version, tags: [default, version, default, always]}
2022-10-11 20:39:03 +02:00
- name: General roles for all hosts
2020-12-12 23:03:33 +01:00
hosts: all
roles:
2024-04-07 17:55:59 +02:00
- {role: l3d.users.user, tags: [users, user]}
- {role: l3d.users.admin, tags: [users, admin]}
- {role: l3d.users.sshd, tags: [users, sshd]}
- {role: l3d.users.dotfiles, tags: [users, dotfiles]}
2024-04-27 02:58:39 +02:00
- {role: l3d.linux.packages, tags: [packages, general]}
2022-05-31 23:47:17 +02:00
- {role: do1jlr.ranger, tags: [packages, ranger]}
2024-02-18 15:12:44 +01:00
- {role: gantsign.bat, tags: [packages, bat], when: [ansible_os_family == 'Debian' and "ansible_architecture" == "x86_64"]}
2021-01-31 16:50:41 +01:00
- {role: unattended_upgrades, tags: [default, unattended, unattended_upgrades, security], become: true, when: ansible_distribution == 'Debian'}
2021-09-01 03:13:26 +02:00
- {role: do1jlr.rtl_nic_firmware, tags: [apu, rtl_nic, firmware]}
2021-09-17 00:02:30 +02:00
- {role: do1jlr.avahi_client, tags: [avahi, avahi_client]}
2023-12-13 01:01:13 +01:00
- {role: l3d.time.ntp, tags: [ntp]}
2023-10-31 16:34:45 +01:00
- {role: prometheus.prometheus.node_exporter, tags: [monitoring, node_exporter]}
2020-12-22 23:53:15 +01:00
2022-10-11 20:39:03 +02:00
- name: User specific roles for all hosts
2020-12-22 23:53:15 +01:00
hosts: all
roles:
2021-01-31 16:50:41 +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
2022-11-12 21:21:23 +01:00
- name: Setup Webserver
2023-11-25 02:11:38 +01:00
hosts: all
2020-12-23 01:17:14 +01:00
roles:
2021-05-09 03:06:44 +02:00
- {role: do1jlr.webhost, tags: [web, webhost], become: true}
- {role: do1jlr.acmetool, tags: [web, acmetool], become: true}
- {role: do1jlr.nginx, tags: [web, nginx]}
2023-11-25 02:35:52 +01:00
- {role: l3d.nginx_exporter, tags: [monitoring, nginx, prometheus, exporter]}
2022-11-12 21:21:23 +01:00
- name: Deploy web config
hosts: web
roles:
2023-06-14 02:39:04 +02:00
# - {role: geerlingguy.mysql, tags: [web, git, mysql], become: true}
2023-05-10 00:22:07 +02:00
- {role: l3d.git.gitea, tags: [web, gitea, git]}
2021-01-01 02:52:42 +01:00
2022-10-11 20:39:03 +02:00
- name: Deploy dns resolver
2021-07-16 19:55:33 +02:00
hosts: resolver
roles:
2021-09-30 00:51:43 +02:00
- {role: do1jlr.unbound, tags: [mail, unbound]}
2021-07-16 19:55:33 +02:00
2022-11-11 00:39:06 +01:00
- name: Deploy services
hosts: services
roles:
- {role: l3d.etebase, tags: [etebase, etesync, calendar, kalender, contacts, kontakte]}
2024-02-28 21:25:53 +01:00
- {role: grafana.grafana.grafana, tags: grafana}
2023-11-23 17:14:47 +01:00
- {role: prometheus.prometheus.prometheus, tags: [monitoring, prometheus]}
- {role: l3d.homebox, tags: [homebox]}
2024-02-18 15:12:44 +01:00
- {role: l3d.rustdesk, tags: [rustdesk]}
2022-11-11 00:39:06 +01:00
2024-02-12 01:46:38 +01:00
- name: Deploy legacy mail config
hosts: mail01.l3d.space
2021-01-02 02:03:34 +01:00
roles:
2023-06-14 02:39:04 +02:00
# - {role: do1jlr.mysql, tags: [mail, mysql, mariadb], become: true}
2021-01-31 16:50:41 +01:00
- {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]}
2021-05-27 16:19:52 +02:00
- {role: do1jlr.weechat, tags: [irc, weechat]}
2021-08-13 01:46:22 +02:00
2022-10-11 20:39:03 +02:00
- name: Setup luna.l3d.ch host
2021-08-13 01:46:22 +02:00
hosts: luna.l3d.ch
roles: []