Accepting request 1038038 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible

update to 7.0.0

OBS-URL: https://build.opensuse.org/request/show/1038038
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible?expand=0&rev=6
This commit is contained in:
Johannes Kastl 2022-11-25 08:04:25 +00:00 committed by Git OBS Bridge
parent 690ac35927
commit 55d9315382
4 changed files with 51 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1b940a8d4f412123ede3c14b25cb99c3c8a4d535fd040aabf8e4fb7b0e4f092
size 35620748

3
ansible-7.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73144e7e602715fab623005d2e71e503dddae86185e061fed861b2449c5618ea
size 35494124

View File

@ -1,3 +1,39 @@
-------------------------------------------------------------------
Wed Nov 23 07:27:47 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- update to 7.0.0:
Ansible 7.0.0 will include ansible-core 2.14.0 as well as a curated set of
Ansible collections to provide a vast number of modules and plugins.
This is a major version update from Ansible 6.x which included
ansible-core 2.13 and there may be backwards incompatibilities in the
core playbook language.
* What's new in Ansible 7
- Ansible 7 requires Python 3.9 on the controller, same as ansible-core 2.14.
- Variables are now evaluated lazily; only when they are actually used. For
example, in ansible-core 2.14 an expression ``{{ defined_variable or
undefined_variable }}`` does not fail on ``undefined_variable`` if the
first part of ``or`` is evaluated to ``True`` as it is not needed to
evaluate the second part.
* Collections added to Ansible 7:
- ibm.spectrum_virtualize (version 1.9.0)
- inspur.ispim (version 1.0.1)
- purestorage.fusion (version 1.1.1)
- vultr.cloud (version 1.1.0)
* The previously deprecated servicenow.servicenow collection has been removed.
* NOTE: Read the full Ansible 7 porting guide at
https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/porting_guides/porting_guide_7.rst
for complete details.
- The changelog for ansible-core 2.14 installed by this release of
ansible is available here:
https://github.com/ansible/ansible/blob/stable-2.14/changelogs/CHANGELOG-v2.14.rst
- Collections which have opted into being a part of the Ansible-7
unified changelog will have an entry on this page:
https://github.com/ansible-community/ansible-build-data/blob/main/7/CHANGELOG-v7.rst
-------------------------------------------------------------------
Wed Nov 16 08:27:00 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -15,26 +15,30 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pythons %primary_python
Name: ansible
Version: 6.6.0
Version: 7.0.0
Release: 0
Summary: Radically simple IT automation
License: GPL-3.0+
URL: https://ansible.com/
Source: https://files.pythonhosted.org/packages/source/a/ansible/ansible-%{version}.tar.gz
Source99: ansible-rpmlintrc
BuildRequires: python3-rpm-macros
BuildRequires: python3-setuptools
BuildRequires: python-rpm-macros
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
# required to fix the azure collection line endings
BuildRequires: dos2unix
# SECTION test requirements
BuildRequires: ansible-core >= 2.13.6
BuildRequires: ansible-core >= 2.14.0
# /SECTION
Requires: ansible-core >= 2.13.6
Requires: %{primary_python}-base >= 3.9
Requires: ansible-core >= 2.14.0
BuildArch: noarch
%description
@ -73,14 +77,14 @@ find ./ansible_collections/azure -type f -exec dos2unix {} \;
rm -rf ./ansible_collections/lowlydba/sqlserver/
%build
python3 setup.py build
%python_build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%fdupes %{buildroot}/%{python_sitelib}/ansible_collections/
%files
%doc CHANGELOG-v6.rst README.rst
%doc CHANGELOG-v7.rst README.rst
%license COPYING
%{_bindir}/ansible-community
%{python_sitelib}/*