Files
fedora-infra_ansible/roles/communishift/tasks/cleanup-administration-send-notifications.yml
Kevin Fenzi a754144f19 Update infra pagure.io links to forge.fp.o (WIP)
This should update all the references we have to
https://pagure.io/fedora-infrastructure to the
new https://forge.fedoraproject.org/infra/tickets/ area.

Do not merge this before the migration on tuesday.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-20 14:39:40 -08:00

34 lines
1.4 KiB
YAML

---
- name: Check if this project should be deleted
ansible.builtin.set_fact:
should_not_delete: "{{ item.value.do_not_delete | default(false) }}"
- name: Send Communishift Project Cleanup notifications emails to tenants
community.general.mail:
host: localhost
port: 25
subject: "Fedora Communishift Notification for project: {{ item.value.name }}"
body: >
Dear Fedora Communishift Project Administrators (BCC'd),
This is a reminder that the Communishift project {{ item.value.name }} will be disasbled and then later deleted during the Fedora post
release process at the same time the oldest fedora is retired (1 month after a new fedora release).
Please ensure you have a backup of any important configuration or data from your project. Consult Openshift docs.
If you need to request an exemption, please file a ticket here: https://forge.fedoraproject.org/infra/tickets
Make sure to reference the project name and please provide a reason for the extention, also please include how long you wish the extention to be
in place for.
from: admin@fedoraproject.org
to: "infrastructure@lists.fedoraproject.org"
bcc: "{{ communishift_project_emails[item.value.name]['email_list'] }}"
cc: admin@fedoraproject.org
headers:
- Reply-To=admin@fedoraproject.org
charset: us-ascii
when: "not should_not_delete"
tags:
- communishift_send_notifications