Updateing the sweeper command and setting it to run only on the stage
env
This commit is contained in:
parent
db012e0f94
commit
ce6005e573
1 changed files with 19 additions and 18 deletions
|
@ -676,22 +676,23 @@
|
|||
- ipa/server
|
||||
- config
|
||||
|
||||
#- name: Copy sweeper script to /usr/local/bin/
|
||||
# copy:
|
||||
# src: sweeper.py
|
||||
# dest: /usr/local/bin/sweeper
|
||||
# mode: 0755
|
||||
# tags:
|
||||
# - ipa/server
|
||||
# - config
|
||||
|
||||
#- name: Set sweeper script on a cron schedule
|
||||
# cron:
|
||||
# name: "clean up mod_auth_gssapi tokens"
|
||||
# hour: "3"
|
||||
# user: root
|
||||
# job: "python3 sweeper"
|
||||
# tags:
|
||||
# - ipa/server
|
||||
# - config
|
||||
- name: Copy sweeper script to /usr/local/bin/
|
||||
copy:
|
||||
src: sweeper.py
|
||||
dest: /usr/local/bin/sweeper
|
||||
mode: 0755
|
||||
tags:
|
||||
- ipa/server
|
||||
- config
|
||||
when: env == 'staging'
|
||||
|
||||
- name: Set sweeper script on a cron schedule
|
||||
cron:
|
||||
name: "clean up mod_auth_gssapi tokens"
|
||||
hour: "3"
|
||||
user: root
|
||||
job: "sweeper -g /run/ipa/ccaches/"
|
||||
tags:
|
||||
- ipa/server
|
||||
- config
|
||||
when: env == 'staging'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue