Only run the cron job on one server

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-05-07 09:34:27 +02:00
parent abaf67b66c
commit bfe6cf9d02
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -44,11 +44,13 @@
- config
- name: Deploy the stage users cleanup sript
- name: Deploy the stage users cleanup script
copy:
src: cleanup-stage-users.py
dest: /etc/cron.daily/cleanup-stage-users
mode: 0755
# Only run the cron job on one server
run_once: yes
tags:
- ipa/server
- config