ansible/playbooks/server.yml

48 lines
1.0 KiB
YAML
Raw Normal View History

2018-11-29 21:51:39 +00:00
---
- hosts: server
2021-02-28 20:31:03 +00:00
vars:
2021-04-22 07:15:26 +00:00
# certbot_force: true
2018-11-29 21:51:39 +00:00
roles:
2021-04-22 07:15:26 +00:00
- role: ansible-role-chisel
become: true
- syncthing
- msmtp
- cronie
- rsyncd
- gandi-dyn-dns
- fail2ban
- role: ansible-role-certbot
become: true # need to have a external connection on 80
2022-03-05 09:32:25 +00:00
- role: ansible-rsync-certs
2022-02-20 14:15:49 +00:00
become: true # need to have a external connection on 80
2021-04-22 07:15:26 +00:00
- role: nginx
become: true
- role: ansible-role-postgresql
become: true
- role: radicale
become: true
- php
- nextcloud
- tt-rss
- gitea
- supysonic
- hass
- role: ansible-vaultwarden
2021-04-22 07:15:26 +00:00
become: true
- role: ansible-role-samba
become: true
- chainetv
- user_config
2019-04-14 09:46:12 +00:00
2020-12-14 19:21:45 +00:00
tasks:
2021-04-22 07:15:26 +00:00
- name: create paccache job for arch mirror
cron:
2022-03-05 09:32:25 +00:00
job: "find {{ arch_mirror_location }} -type d"
exec: paccache -v -r -k 2 -c {} \\;"
2021-04-22 07:15:26 +00:00
user: "root"
name: "paccache job"
hour: "4"
minute: "0"
state: present
become: true