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