Skip to content
Snippets Groups Projects
Verified Commit 1cddad7a authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Add mirrorresolv service and timer running twice a day.

parent 8b192edc
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,18 @@
- daemon reload
when: archweb_services or archweb_mirrorcheck
- name: install mirrorresolv service
template: src="archweb-mirrorresolv.service.j2" dest="/etc/systemd/system/archweb-mirrorresolv.service" owner=root group=root mode=0644
notify:
- daemon reload
when: archweb_services or archweb_mirrorresolv
- name: install mirrorresolv timer
template: src="archweb-mirrorresolv.timer.j2" dest="/etc/systemd/system/archweb-mirrorresolv.timer" owner=root group=root mode=0644
notify:
- daemon reload
when: archweb_services or archweb_mirrorresolv
- name: install pgp_import service
template: src="archweb-pgp_import.service.j2" dest="/etc/systemd/system/archweb-pgp_import.service" owner=root group=root mode=0644
notify:
......
[Unit]
Description=archewb mirrorresolv service
After=network.target
[Service]
Type=oneshot
User=archweb
WorkingDirectory={{ archweb_dir }}
ExecStart={{ archweb_dir }}/env/bin/python manage.py mirrorresolv
[Install]
WantedBy=multi-user.target
[Unit]
Description=archweb mirrorresolv timer
[Timer]
OnUnitActiveSec=12h
OnBootSec=15min
RandomizedDelaySec=10min
[Install]
WantedBy=timers.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment