2020-12-12 23:03:33 +01:00
|
|
|
---
|
2021-01-14 22:29:57 +01:00
|
|
|
- name: check if ansible is not to old
|
|
|
|
hosts: localhost
|
|
|
|
roles:
|
2021-01-31 16:50:41 +01:00
|
|
|
- {role: do1jlr.ansible_version, tags: [default, version, default, always], gather_facts: false}
|
2021-01-14 22:29:57 +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:
|
2021-04-18 23:18:30 +02:00
|
|
|
- {role: do1jlr.base, tags: [default, packages, base]}
|
2021-01-31 16:50:41 +01:00
|
|
|
- {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'}
|
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]}
|
2021-09-27 00:48:50 +02:00
|
|
|
- {role: do1jlr.ntp, tags: [ntp]}
|
2020-12-22 23:53:15 +01:00
|
|
|
|
|
|
|
- name: user specific roles for all hosts
|
|
|
|
hosts: all
|
|
|
|
roles:
|
2021-11-09 16:40:55 +01:00
|
|
|
- {role: do1jlr.admin_base, tags: [default, init, users, accounts, dotfiles]}
|
2021-01-31 16:50:41 +01:00
|
|
|
- {role: dotfiles, tags: [default, dotfiles]}
|
|
|
|
- {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:
|
2021-05-09 03:06:44 +02:00
|
|
|
- {role: do1jlr.webhost, tags: [web, webhost], become: true}
|
2021-01-31 16:50:41 +01:00
|
|
|
- {role: acmetool_fix, tags: [web, acmetool]}
|
2021-05-09 03:06:44 +02:00
|
|
|
- {role: do1jlr.acmetool, tags: [web, acmetool], become: true}
|
2021-02-06 17:48:53 +01:00
|
|
|
- {role: do1jlr.nginx, tags: [web, nginx]}
|
2021-09-18 18:54:34 +02:00
|
|
|
- {role: do1jlr.mysql, tags: [web, git, mysql], become: true}
|
2021-04-18 23:18:30 +02:00
|
|
|
- {role: do1jlr.gitea, tags: [web, gitea, git]}
|
2021-01-01 02:52:42 +01:00
|
|
|
|
2021-07-16 19:55:33 +02:00
|
|
|
- name: deploy dns resolver
|
|
|
|
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
|
|
|
|
2021-01-02 02:03:34 +01:00
|
|
|
- name: deploy mail config
|
|
|
|
hosts: mail
|
|
|
|
roles:
|
2021-09-18 18:54:34 +02:00
|
|
|
- {role: do1jlr.mysql, tags: [mail, mysql, mariadb], become: true}
|
2021-05-09 03:06:44 +02:00
|
|
|
- {role: do1jlr.webhost, tags: [mail, webhost], become: true}
|
2021-01-31 16:50:41 +01:00
|
|
|
- {role: acmetool_fix, tags: [mail, acmetool]}
|
2021-05-09 03:06:44 +02:00
|
|
|
- {role: do1jlr.acmetool, tags: [mail, acmetool], become: true}
|
2021-02-06 17:48:53 +01:00
|
|
|
- {role: do1jlr.nginx, tags: [mail, nginx]}
|
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
|
|
|
|
|
|
|
- name: setup luna.l3d.ch host
|
|
|
|
hosts: luna.l3d.ch
|
|
|
|
roles: []
|
|
|
|
# - {role: do1jlr.ovh_dyndns, tags: [ovh, dns, dyndns]}
|