Remove deprecated features and plugins for 11.0.0 (#10126)
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled

* Bump version to 11.0.0.

* Removed deprecated plugins/modules.

* Remove _init_session().

* Remove ack_venv_creation_deprecation.

* Change behavior of state.

* Remove value reading.

* Remove list_all.

* Remove various deprecated module helper things.

* Change default of proxmox's update parameter.

* Fix constructor command order.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* MH: adjust guide

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <russoz@gmail.com>
This commit is contained in:
Felix Fontein 2025-05-19 18:11:39 +02:00 committed by GitHub
commit 9d7b3f13bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 89 additions and 10574 deletions

View file

@ -1,20 +0,0 @@
---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- import_tasks: setup_no_value.yml
- name: testing exclusion between state and list_all parameters
git_config:
list_all: true
state: absent
register: result
ignore_errors: true
- name: assert git_config failed
assert:
that:
- result is failed
- "result.msg == 'parameters are mutually exclusive: list_all|state'"
...

View file

@ -13,7 +13,7 @@
register: set_result
- name: getting value without state
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result
@ -24,6 +24,5 @@
- set_result is changed
- set_result.diff.before == "\n"
- set_result.diff.after == option_value + "\n"
- get_result is not changed
- get_result.config_value == option_value
...

View file

@ -14,10 +14,9 @@
register: result
- name: getting value with state=present
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
state: present
register: get_result
- name: assert set changed and value is correct with state=present
@ -26,6 +25,5 @@
- set_result is changed
- set_result.diff.before == "\n"
- set_result.diff.after == option_value + "\n"
- get_result is not changed
- get_result.config_value == option_value
...

View file

@ -15,11 +15,10 @@
register: result
- name: getting value with state=present
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "file"
file: "{{ remote_tmp_dir }}/gitconfig_file"
state: present
path: "{{ remote_tmp_dir }}/gitconfig_file"
register: get_result
- name: assert set changed and value is correct with state=present
@ -28,6 +27,5 @@
- set_result is changed
- set_result.diff.before == "\n"
- set_result.diff.after == option_value + "\n"
- get_result is not changed
- get_result.config_value == option_value
...

View file

@ -14,8 +14,6 @@
- block:
- import_tasks: set_value.yml
# testing parameters exclusion: state and list_all
- import_tasks: exclusion_state_list-all.yml
# testing get/set option without state
- import_tasks: get_set_no_state.yml
# testing get/set option with state=present

View file

@ -14,7 +14,7 @@
register: unset_result
- name: getting value
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result

View file

@ -31,17 +31,11 @@
- 'merge_request.target=foobar'
register: set_result2
- name: getting the multi-value
git_config:
name: push.pushoption
scope: global
register: get_single_result
- name: getting all values for the single option
git_config_info:
name: push.pushoption
scope: global
register: get_all_result
register: get_result
- name: replace-all values
git_config:
@ -62,8 +56,8 @@
- set_result2.results[1] is not changed
- set_result2.results[2] is not changed
- set_result3 is changed
- get_single_result.config_value == 'merge_request.create'
- 'get_all_result.config_values == {"push.pushoption": ["merge_request.create", "merge_request.draft", "merge_request.target=foobar"]}'
- get_result.config_value == 'merge_request.create'
- 'get_result.config_values == {"push.pushoption": ["merge_request.create", "merge_request.draft", "merge_request.target=foobar"]}'
- name: assert the diffs are also right
assert:

View file

@ -20,7 +20,7 @@
register: set_result2
- name: getting value
git_config:
git_config_info:
name: core.name
scope: global
register: get_result
@ -30,7 +30,6 @@
that:
- set_result1 is changed
- set_result2 is changed
- get_result is not changed
- get_result.config_value == 'bar'
- set_result1.diff.before == "\n"
- set_result1.diff.after == "foo\n"

View file

@ -22,7 +22,7 @@
register: set_result2
- name: getting value
git_config:
git_config_info:
name: core.hooksPath
scope: global
register: get_result
@ -32,6 +32,5 @@
that:
- set_result1 is changed
- set_result2 is not changed
- get_result is not changed
- get_result.config_value == '~/foo/bar'
...

View file

@ -14,7 +14,7 @@
register: unset_result
- name: getting value
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result

View file

@ -13,7 +13,7 @@
register: unset_result
- name: getting value
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result

View file

@ -13,7 +13,7 @@
register: unset_result
- name: getting value
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result
@ -37,7 +37,7 @@
register: unset_result
- name: getting value
git_config:
git_config_info:
name: "{{ option_name }}"
scope: "{{ option_scope }}"
register: get_result

View file

@ -57,7 +57,7 @@ class MSimple(ModuleHelper):
raise Exception("a >= 100")
if self.vars.c == "abc change":
self.vars['abc'] = "changed abc"
if self.vars.get('a', 0) == 2:
if self.vars.a == 2:
self.vars['b'] = str(self.vars.b) * 2
self.vars['c'] = str(self.vars.c) * 2

View file

@ -63,7 +63,7 @@ class MSimple(ModuleHelper):
raise Exception("a >= 100")
if self.vars.c == "abc change":
self.vars['abc'] = "changed abc"
if self.vars.get('a', 0) == 2:
if self.vars.a == 2:
self.vars['b'] = str(self.vars.b) * 2
self.vars['c'] = str(self.vars.c) * 2
self.process_a3_bc()

View file

@ -49,7 +49,6 @@ class MState(StateModuleHelper):
state=dict(type='str', choices=['join', 'b_x_a', 'c_x_a', 'both_x_a', 'nop'], default='join'),
),
)
use_old_vardict = False
def __init_module__(self):
self.vars.set('result', "abc", diff=True)