Skip to content
Snippets Groups Projects
Commit 57370f80 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Start cron only after network

parent 78f7bafe
No related branches found
No related tags found
No related merge requests found
[Unit]
After=network.target
- name: Reload systemd
systemd: daemon-reload=yes
- name: Restart cron
systemd: name=cron state=restarted
......@@ -10,5 +10,24 @@
tags:
- packages
- name: Ensure presence of cron.service.d
file:
path: /etc/systemd/system/cron.service.d
state: directory
tags:
- config
- cron
- name: Ensure crond starts after network is available
copy:
dest: /etc/systemd/system/cron.service.d/after-network.conf
src: after-network.conf
notify:
- Reload systemd
- Restart cron
tags:
- config
- cron
- include: x2go.yml
- meta: flush_handlers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment