diff --git a/SPECS/ansible-collection-microsoft-sql.spec b/SPECS/ansible-collection-microsoft-sql.spec
index 9f79f69..4aab1b4 100644
--- a/SPECS/ansible-collection-microsoft-sql.spec
+++ b/SPECS/ansible-collection-microsoft-sql.spec
@@ -26,7 +26,7 @@ Name: ansible-collection-microsoft-sql
 Url: https://github.com/linux-system-roles/mssql
 Summary: The Ansible collection for Microsoft SQL Server management
 Version: 1.2.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: MIT
 
@@ -122,6 +122,13 @@ Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
 Collection artifact for %{name}. This package contains %{collection_namespace}-%{collection_name}-%{version}.tar.gz
 %endif
 
+%pretrans -p <lua>
+path = "%{installbase}/%{legacy_rolename}"
+st = posix.stat(path)
+if st and st.type == "link" then
+  os.remove(path)
+end
+
 %prep
 %setup -q -a1 -n auto-maintenance-%{mainid}
 
@@ -348,6 +355,10 @@ fi
 %endif
 
 %changelog
+* Mon Nov 7 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-2
+- Fix changing symlink to directory with update from 1.1.1-3 to 1.2.4-1
+  Resolves: rhbz#2140582
+
 * Fri Sep 23 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
 - Simplify spec file
   - Do not install roles to /usr/share/microsoft and then create symlinks