From 18107de9339f984c57a1a3c705bb1120a3c17d53 Mon Sep 17 00:00:00 2001 From: shubhaOracle <67933042+shubhaOracle@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:16:58 -0400 Subject: [PATCH] HE: Add an ansible task to enable and start postfix service on SHE hosts (#741) Issue: On the SHE host ovirt-ha-agent logs are filled with mail notification errors Fix: Add an ansible task to enable and start postfix service on SHE hosts Signed-off-by: ShubhaOracle --- .../fragments/741-enable-and-start-postfix-service.yml | 3 +++ .../tasks/bootstrap_local_vm/05_add_host.yml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 changelogs/fragments/741-enable-and-start-postfix-service.yml diff --git a/changelogs/fragments/741-enable-and-start-postfix-service.yml b/changelogs/fragments/741-enable-and-start-postfix-service.yml new file mode 100644 index 00000000..0fd7bb4c --- /dev/null +++ b/changelogs/fragments/741-enable-and-start-postfix-service.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Enable and start postfix service so that ovirt-ha-agent logs are not filled with mail notification errors (https://github.com/oVirt/ovirt-ansible-collection/pull/741) diff --git a/roles/hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml b/roles/hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml index 67a3038f..3d40368e 100644 --- a/roles/hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml +++ b/roles/hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml @@ -217,6 +217,14 @@ register: host_result_up_check ignore_errors: true + - name: Enable postfix service + ansible.builtin.service: + name: postfix + enabled: true + state: started + register: postfix_service_status + ignore_errors: true + - name: Handle deployment failure block: - name: Set host_id