ansible/server.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2018-11-29 21:51:39 +00:00
---
- hosts: server
2020-01-27 19:08:22 +00:00
pre_tasks:
2019-04-14 09:46:12 +00:00
- 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
2021-02-28 20:31:03 +00:00
vars:
# certbot_force: true
2018-11-29 21:51:39 +00:00
roles:
- role: ansible-role-chisel
become: yes
2020-06-04 20:21:05 +00:00
- syncthing
2020-07-04 13:10:01 +00:00
- msmtp
2019-04-14 09:46:12 +00:00
- cronie
- rsyncd
- gandi-dyn-dns
- fail2ban
2020-07-05 10:12:10 +00:00
- ansible-pihole
- {role: ansible-role-certbot, become: yes} ##need to have a external connection on 80
2020-01-13 19:04:49 +00:00
- {role: nginx, become: yes }
2020-09-06 18:49:06 +00:00
- {role: ansible-role-postgresql, become: yes }
2019-10-11 16:57:11 +00:00
- {role: radicale , become: yes }
2019-04-14 14:49:30 +00:00
- php
- php7
2020-02-16 15:22:01 +00:00
- nextcloud
2018-11-29 21:51:39 +00:00
- tt-rss
- gitea
2019-08-18 15:34:44 +00:00
- supysonic
2020-01-29 20:58:09 +00:00
- hass
2021-02-28 20:31:03 +00:00
- {role: ansible-bitwardenrs ,become:yes }
2020-02-07 18:30:02 +00:00
- {role: ansible-role-samba , become: yes }
2019-10-24 20:17:37 +00:00
- chainetv
2019-11-24 14:11:29 +00:00
- user_config
2019-04-14 09:46:12 +00:00
2020-12-14 19:21:45 +00:00
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"
2020-12-14 19:21:45 +00:00
state: present
2021-02-28 20:31:03 +00:00
become: true