ansible/server.yml
2020-12-17 12:39:44 +01:00

42 lines
1.0 KiB
YAML

---
- hosts: server
pre_tasks:
- name: install terminfo
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name:
- termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove.
become: yes
roles:
- syncthing
- msmtp
- cronie
- rsyncd
- gandi-dyn-dns
- fail2ban
- ansible-pihole
- {role: ansible-role-certbot, become: yes} ##need to have a external connection on 80
- {role: nginx, become: yes }
- {role: ansible-role-postgresql, become: yes }
- {role: radicale , become: yes }
- php
- nextcloud
- tt-rss
- gitea
- supysonic
- hass
- {role: ansible-role-samba , become: yes }
- chainetv
- user_config
tasks:
- name: create paccache job for arch mirror
cron:
job: "find {{arch_mirror_location}} -type d -exec paccache -v -r -k 2 -c {} \\;"
user: "root"
name: "paccache job"
hour: "4"
Minute:"0"
state: present
become: true