Commit 0dd534bd authored by Jürgen Haas's avatar Jürgen Haas

ansible-inventories/arocom#2838 Roll out crontabs from local setup if available

parent f3190994
......@@ -471,6 +471,23 @@
tags:
- cron
- name: Setup Host Crontabs from local setup
cron:
name: '{{ item.name }}'
env: '{{ item.env|default(omit) }}'
value: '{{ item.value|default(omit) }}'
user: '{{ item.user|default(omit) }}'
month: '{{ item.month|default(omit) }}'
day: '{{ item.day|default(omit) }}'
weekday: '{{ item.day|default(omit) }}'
hour: '{{ item.hour|default(omit) }}'
minute: '{{ item.minute|default(omit) }}'
job: '{{ item.job|default("") }} >>{{ item.redirect|default("/dev/null") }} 2>&1'
disabled: '{{ item.disabled|default(false) }}'
with_items: '{{ ansible_local.crontabs|default([]) }}'
tags:
- cron
- name: Import tunnel
import_tasks: tunnel.yml
when: ssh_tunnel is defined
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment