Release:       1
 License:       GPL v3+
 Group:         Development/Libraries
-Source0:       https://github.com/ansible/ansible/archive/refs/tags/v%{version}.tar.gz
-# Source0-md5: 91855c745f4304113e5f3bc8df7525cf
+Source0:       https://files.pythonhosted.org/packages/66/5f/3098fac361ca16fc42ac30a2da09939286afd9af289f156ac9fbe87595e9/%{name}-core-%{version}.tar.gz
+# Source0-md5: 60684b6b2056b6a71f18f09a07ecc98c
 Source1:       poldek.py
 Patch0:                poldek.patch
 URL:           https://ansible.com
 are transferred to managed machines automatically.
 
 %prep
-%setup -q
+%setup -q -n %{name}-core-%{version}
 %patch0 -p1
 
 %{__sed} -i '1s,/usr/bin/env python,%{__python3},' test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py
 rm -rf $RPM_BUILD_ROOT
 %py3_install
 
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{py3_sitescriptdir}/ansible/modules/
+
 %clean
 rm -rf $RPM_BUILD_ROOT