[mailman] Enable post-actions plugin

Enable post-transaction-actions plugin for mailman to be able to run post
transaction scripts.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-03-14 16:43:58 +01:00
parent 375ccfbb06
commit 122faad904

View file

@ -571,12 +571,26 @@
when: inventory_hostname.startswith('mailman01')
tags: mailman
- name: Enable post-actions plugin
dnf:
enable_plugin:
- post-transaction-actions
tags: mailman
when: env == 'staging'
# Sync databases and collect static files on RPM install/upgrade
- name: install the post-transaction trigger
template: src=post-transaction.action.j2
dest=/etc/dnf/post-transaction-actions.d/hyperkitty.action
tags: mailman
when: env == 'staging'
# Sync databases and collect static files on RPM install/upgrade
- name: install the post-transaction trigger
template: src=post-transaction.action.j2
dest=/etc/yum/post-actions/hyperkitty.action
tags: mailman
when: env == 'production'
# Systemd
- name: install the systemd service files