Put a lock wrapper also around the package-owner-aliases cronjob on bastion.
This commit is contained in:
parent
2a89fc0b92
commit
6cdc5fbf44
1 changed files with 16 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
- name: Install the script to generate the <pkg>-owner email alias
|
||||
copy:
|
||||
src: package-owner-aliases.sh
|
||||
dest: /etc/cron.hourly/package-owner-aliases.sh
|
||||
dest: /usr/local/bin/package-owner-aliases.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
@ -22,6 +22,21 @@
|
|||
- install
|
||||
- packager_alias
|
||||
|
||||
- name: Configure cron to generate the <pkg>-owner email alias
|
||||
cron: name="package-owner-aliases" minute="49" user="root"
|
||||
job="/usr/local/bin/lock-wrapper package-owner-aliases /usr/local/bin/package-owner-aliases.sh"
|
||||
cron_file=package-owner-aliases
|
||||
tags:
|
||||
- install
|
||||
- packager_alias
|
||||
|
||||
- name: Remove the old <pkg>-owner email alias script
|
||||
file:
|
||||
path: /etc/cron.hourly/package-owner-aliases.sh
|
||||
state: absent
|
||||
tags:
|
||||
- packager_alias
|
||||
|
||||
#
|
||||
# Since this host has mail aliases, it's a mail hub. Compress logs since there will be a ton of them
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue