ansible/server.yml
2021-04-18 16:15:13 +02:00

48 lines
1.2 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
vars:
# certbot_force: true
roles:
- role: ansible-role-chisel
become: yes
- 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 }
- {role: ansible-drone ,become: yes}
- php
- nextcloud
- tt-rss
- gitea
- supysonic
- hass
- {role: ansible-bitwardenrs , become: yes }
- {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