ansible-core 2.16.9__py3-none-any.whl → 2.16.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ansible-core might be problematic. Click here for more details.
- ansible/config/base.yml +2 -2
- ansible/module_utils/ansible_release.py +1 -1
- ansible/plugins/strategy/linear.py +21 -44
- ansible/plugins/test/any.yml +2 -2
- ansible/release.py +1 -1
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/METADATA +1 -1
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/RECORD +14 -14
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/WHEEL +1 -1
- ansible_test/_data/completion/network.txt +0 -1
- ansible_test/_internal/cli/compat.py +4 -1
- {ansible_core-2.16.9.data → ansible_core-2.16.10.data}/scripts/ansible-test +0 -0
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/COPYING +0 -0
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/entry_points.txt +0 -0
- {ansible_core-2.16.9.dist-info → ansible_core-2.16.10.dist-info}/top_level.txt +0 -0
ansible/config/base.yml
CHANGED
|
@@ -845,8 +845,8 @@ DEFAULT_MODULE_COMPRESSION:
|
|
|
845
845
|
env: []
|
|
846
846
|
ini:
|
|
847
847
|
- {key: module_compression, section: defaults}
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
vars:
|
|
849
|
+
- name: ansible_module_compression
|
|
850
850
|
DEFAULT_MODULE_NAME:
|
|
851
851
|
name: Default adhoc module
|
|
852
852
|
default: command
|
|
@@ -48,12 +48,6 @@ display = Display()
|
|
|
48
48
|
|
|
49
49
|
class StrategyModule(StrategyBase):
|
|
50
50
|
|
|
51
|
-
def __init__(self, *args, **kwargs):
|
|
52
|
-
super().__init__(*args, **kwargs)
|
|
53
|
-
|
|
54
|
-
# used for the lockstep to indicate to run handlers
|
|
55
|
-
self._in_handlers = False
|
|
56
|
-
|
|
57
51
|
def _get_next_task_lockstep(self, hosts, iterator):
|
|
58
52
|
'''
|
|
59
53
|
Returns a list of (host, task) tuples, where the task may
|
|
@@ -75,52 +69,35 @@ class StrategyModule(StrategyBase):
|
|
|
75
69
|
if not state_task_per_host:
|
|
76
70
|
return [(h, None) for h in hosts]
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if s.run_state == IteratingStates.HANDLERS
|
|
88
|
-
)
|
|
89
|
-
else:
|
|
90
|
-
task_uuids = [t._uuid for s, t in state_task_per_host.values()]
|
|
91
|
-
_loop_cnt = 0
|
|
92
|
-
while _loop_cnt <= 1:
|
|
93
|
-
try:
|
|
94
|
-
cur_task = iterator.all_tasks[iterator.cur_task]
|
|
95
|
-
except IndexError:
|
|
96
|
-
# pick up any tasks left after clear_host_errors
|
|
97
|
-
iterator.cur_task = 0
|
|
98
|
-
_loop_cnt += 1
|
|
99
|
-
else:
|
|
100
|
-
iterator.cur_task += 1
|
|
101
|
-
if cur_task._uuid in task_uuids:
|
|
102
|
-
break
|
|
72
|
+
task_uuids = {t._uuid for s, t in state_task_per_host.values()}
|
|
73
|
+
_loop_cnt = 0
|
|
74
|
+
while _loop_cnt <= 1:
|
|
75
|
+
try:
|
|
76
|
+
cur_task = iterator.all_tasks[iterator.cur_task]
|
|
77
|
+
except IndexError:
|
|
78
|
+
# pick up any tasks left after clear_host_errors
|
|
79
|
+
iterator.cur_task = 0
|
|
80
|
+
_loop_cnt += 1
|
|
103
81
|
else:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
82
|
+
iterator.cur_task += 1
|
|
83
|
+
if cur_task._uuid in task_uuids:
|
|
84
|
+
break
|
|
85
|
+
else:
|
|
86
|
+
# prevent infinite loop
|
|
87
|
+
raise AnsibleAssertionError(
|
|
88
|
+
'BUG: There seems to be a mismatch between tasks in PlayIterator and HostStates.'
|
|
89
|
+
)
|
|
108
90
|
|
|
109
91
|
host_tasks = []
|
|
110
92
|
for host, (state, task) in state_task_per_host.items():
|
|
111
|
-
if
|
|
112
|
-
(not self._in_handlers and cur_task._uuid == task._uuid)):
|
|
93
|
+
if cur_task._uuid == task._uuid:
|
|
113
94
|
iterator.set_state_for_host(host.name, state)
|
|
114
95
|
host_tasks.append((host, task))
|
|
115
96
|
else:
|
|
116
97
|
host_tasks.append((host, noop_task))
|
|
117
98
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# until at least one host is in IteratingStates.HANDLERS
|
|
121
|
-
if (not self._in_handlers and cur_task.action in C._ACTION_META and
|
|
122
|
-
cur_task.args.get('_raw_params') == 'flush_handlers'):
|
|
123
|
-
self._in_handlers = True
|
|
99
|
+
if cur_task.action in C._ACTION_META and cur_task.args.get('_raw_params') == 'flush_handlers':
|
|
100
|
+
iterator.all_tasks[iterator.cur_task:iterator.cur_task] = [h for b in iterator._play.handlers for h in b.block]
|
|
124
101
|
|
|
125
102
|
return host_tasks
|
|
126
103
|
|
|
@@ -307,7 +284,7 @@ class StrategyModule(StrategyBase):
|
|
|
307
284
|
final_block = new_block.filter_tagged_tasks(task_vars)
|
|
308
285
|
display.debug("done filtering new block on tags")
|
|
309
286
|
|
|
310
|
-
|
|
287
|
+
included_tasks.extend(final_block.get_tasks())
|
|
311
288
|
|
|
312
289
|
for host in hosts_left:
|
|
313
290
|
if host in included_file._hosts:
|
ansible/plugins/test/any.yml
CHANGED
|
@@ -2,7 +2,7 @@ DOCUMENTATION:
|
|
|
2
2
|
name: any
|
|
3
3
|
author: Ansible Core
|
|
4
4
|
version_added: "2.4"
|
|
5
|
-
short_description: is any
|
|
5
|
+
short_description: is any condition in a list true
|
|
6
6
|
description:
|
|
7
7
|
- This test checks each condition in a list for truthiness.
|
|
8
8
|
- Same as the C(any) Python function.
|
|
@@ -14,7 +14,7 @@ DOCUMENTATION:
|
|
|
14
14
|
required: True
|
|
15
15
|
EXAMPLES: |
|
|
16
16
|
varexpression: "{{ 3 == 3 }}"
|
|
17
|
-
#
|
|
17
|
+
# is any statement true?
|
|
18
18
|
{{ [false, booleanvar, varexpression] is any}}
|
|
19
19
|
|
|
20
20
|
RETURN:
|
ansible/release.py
CHANGED
|
@@ -3,7 +3,7 @@ ansible/__main__.py,sha256=IvyRvY64pT0on94qCLibxgDJ0-7_2CRoaZ5kfGOl54Q,1395
|
|
|
3
3
|
ansible/constants.py,sha256=FvX7PDG0GWV91Vszb5-DFKvkR8O2OTpBmIbQk-d51sc,9193
|
|
4
4
|
ansible/context.py,sha256=OzSlaA_GgGRyyf5I209sy19_eGOX6HXn441W9w_FcvU,2018
|
|
5
5
|
ansible/keyword_desc.yml,sha256=vE9joFgSeHR4Djl7Bd-HHVCrGByRCrTUmWYZ8LKPZKk,7412
|
|
6
|
-
ansible/release.py,sha256=
|
|
6
|
+
ansible/release.py,sha256=VdxCMTKPkJzB4M33M-WGB5d-RFnwlAAYRyWiE7w747k,916
|
|
7
7
|
ansible/_vendor/__init__.py,sha256=wJRKH7kI9OzYVY9hgSchOsTNTmTnugpPLGYj9Y5akX0,2086
|
|
8
8
|
ansible/cli/__init__.py,sha256=6jaX6SS-UBM7pjiUlDsC0y07k3klUjxTR5ZEnDiCmP8,28706
|
|
9
9
|
ansible/cli/adhoc.py,sha256=suzo4QnsaMjJBk5JlAUd-cpQLs8Ckj6A55CiG9Y8Gns,8247
|
|
@@ -26,7 +26,7 @@ ansible/compat/importlib_resources.py,sha256=tDxWjvtfaEU6si-OTjc41PYfnmTIZ2Lc8oh
|
|
|
26
26
|
ansible/compat/selectors/__init__.py,sha256=dD8KQZBa0NUi-hxhGx0eppTE3wHdMIchORAp2YV8rSo,1251
|
|
27
27
|
ansible/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
ansible/config/ansible_builtin_runtime.yml,sha256=TSP32-cHB3kKhRJ_3whBwtCr2Dtry2i-7HY4gERUWeA,376031
|
|
29
|
-
ansible/config/base.yml,sha256=
|
|
29
|
+
ansible/config/base.yml,sha256=ZAoJ2IfRDDYUQpxGYpgfJoCB35eY21ejU2Hrdxk4QhQ,84999
|
|
30
30
|
ansible/config/manager.py,sha256=LYCaiOAyGvFclsV82GG81l-V_3qIQhETImS9UKthz_I,25312
|
|
31
31
|
ansible/errors/__init__.py,sha256=f8N3525uEu2b9Kw98ze_ngLITalq5MbrJn2b1oR_NeQ,14823
|
|
32
32
|
ansible/errors/yaml_strings.py,sha256=p8WIWbjKSIvr_MWx3jOyGyUZMXoKttTPzuWVbHMwdmY,3942
|
|
@@ -140,7 +140,7 @@ ansible/inventory/host.py,sha256=7RZjLiB7M74bejFRflOTa8XPHxMC334qhSo_5VmZrKI,512
|
|
|
140
140
|
ansible/inventory/manager.py,sha256=ZwmEF3E2BKOJi9SMVQNz83A2f3raQn6Nyo-rfSNMn2k,29507
|
|
141
141
|
ansible/module_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
142
|
ansible/module_utils/_text.py,sha256=F_YfeaxhwmTI16HICAzQS9ZmlKgBDdQ4mqR-Kh--okg,597
|
|
143
|
-
ansible/module_utils/ansible_release.py,sha256=
|
|
143
|
+
ansible/module_utils/ansible_release.py,sha256=VdxCMTKPkJzB4M33M-WGB5d-RFnwlAAYRyWiE7w747k,916
|
|
144
144
|
ansible/module_utils/api.py,sha256=BTo7stVOANbtd-ngZslaqx70r9t5gfvo44cKyu5SFjU,5837
|
|
145
145
|
ansible/module_utils/basic.py,sha256=7xL3IsZK68gyyYm2x8yB2s1V7Sx77-vK3rkXmp2mlCM,87489
|
|
146
146
|
ansible/module_utils/connection.py,sha256=9Us-d-y1bhC3zNnziQxvYNT4umIaN0OYv8zPaUSdEf0,8447
|
|
@@ -584,12 +584,12 @@ ansible/plugins/strategy/__init__.py,sha256=eS8JSyb3zFrTK8qm0-tK-bk8fNtG_tmbmUZ1
|
|
|
584
584
|
ansible/plugins/strategy/debug.py,sha256=GxUS0bSiaWInIK8zgB7rMREEqvgrZhVlFUzOCJtnjFo,1258
|
|
585
585
|
ansible/plugins/strategy/free.py,sha256=BAz89LpU2_uP4mFizdG7Lt5GmxsDGOmR9bS_M4RKCQk,15897
|
|
586
586
|
ansible/plugins/strategy/host_pinned.py,sha256=3-q5l-tpheMlU-BXGm6ZQNgHvQv5IMvOCDZBLibl1L4,1959
|
|
587
|
-
ansible/plugins/strategy/linear.py,sha256=
|
|
587
|
+
ansible/plugins/strategy/linear.py,sha256=odF0fAYcG4JbfYoJOEy_obx1FsMhbk64nkTmX4ezmZU,18772
|
|
588
588
|
ansible/plugins/terminal/__init__.py,sha256=Pgzb8SsOGE2irgrv4f--4rfTDNxDFURzToWOatDg8J4,4472
|
|
589
589
|
ansible/plugins/test/__init__.py,sha256=6DY18LxzSdtO7-fDS6957bo61fg-xG3TDWvtFkhGYOQ,471
|
|
590
590
|
ansible/plugins/test/abs.yml,sha256=lZA0XP1oBNg___Du6SqNOkDeQC9xIcZpROYV5XJG9bg,764
|
|
591
591
|
ansible/plugins/test/all.yml,sha256=nEWCy7Uwbml6mAKG7_i4Gs9spU237W3yiXl-fZkHt3Q,701
|
|
592
|
-
ansible/plugins/test/any.yml,sha256=
|
|
592
|
+
ansible/plugins/test/any.yml,sha256=urB1M9FK_RXOeN8oJLdMfn884pnB6yv1wC1mdA84_vE,695
|
|
593
593
|
ansible/plugins/test/change.yml,sha256=sbQqndZdgT2Npre55G6epkb5wJwLWqT3zf541HuV47I,663
|
|
594
594
|
ansible/plugins/test/changed.yml,sha256=sbQqndZdgT2Npre55G6epkb5wJwLWqT3zf541HuV47I,663
|
|
595
595
|
ansible/plugins/test/contains.yml,sha256=-3O6opQSiEfNuzaF4Rzry30l8ICj_f4MPujSR-pCDes,1287
|
|
@@ -682,12 +682,12 @@ ansible/vars/hostvars.py,sha256=xd9TRpqvqMoZxrzQpbBHV_EAii_CdzSBzCg5Y5kpJr8,5202
|
|
|
682
682
|
ansible/vars/manager.py,sha256=lIfISTPyRcNfJVWJhhNof36Zmk6xSMUkf9sFxrzCzcI,38180
|
|
683
683
|
ansible/vars/plugins.py,sha256=RsRU9fiLcJwPIAyTYnmVZglsiEOMCIgQskflavE-XnE,4546
|
|
684
684
|
ansible/vars/reserved.py,sha256=FBD7n2dnA0CW4I0J1LtWwk2hQqvGW0KTRPcxaRtMKWo,2615
|
|
685
|
-
ansible_core-2.16.
|
|
685
|
+
ansible_core-2.16.10.data/scripts/ansible-test,sha256=CYIYL99IxWdVTtDIj3avilIJXhGAmtjuKPPWNuLWuc8,1690
|
|
686
686
|
ansible_test/__init__.py,sha256=6e721yAyyyocRKzbCKtQXloAfFP7Aqv0L3zG70uh-4A,190
|
|
687
687
|
ansible_test/_data/ansible.cfg,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
688
688
|
ansible_test/_data/coveragerc,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
689
689
|
ansible_test/_data/completion/docker.txt,sha256=wDD1eBeED4RVu-Ly-QcmIHeHWZ2qDI6m04R7yuMA9qU,826
|
|
690
|
-
ansible_test/_data/completion/network.txt,sha256=
|
|
690
|
+
ansible_test/_data/completion/network.txt,sha256=BxVN0UxlVkRUrPi9MBArQOe6nR8exaow0oCAznUdfKQ,100
|
|
691
691
|
ansible_test/_data/completion/remote.txt,sha256=3R8M_uU5SMNTNvMKYCr60qGjsBPpy_eC9D4JNHWR9PE,883
|
|
692
692
|
ansible_test/_data/completion/windows.txt,sha256=LunFLE7xMeoS9TVDuE58nUBVzsz-Wh-9wfL80mGiUmo,147
|
|
693
693
|
ansible_test/_data/playbooks/posix_coverage_setup.yml,sha256=PgQNVzVTsNmfnu0sT2SAYiWtkMSOppfmh0oVmAsb7TQ,594
|
|
@@ -784,7 +784,7 @@ ansible_test/_internal/classification/powershell.py,sha256=i8t8LxG_-wDPpz1VlnvqA
|
|
|
784
784
|
ansible_test/_internal/classification/python.py,sha256=pltDeMQEDbtjyG15vAizCvygU8MHrPcqWSobU6z_8YY,13532
|
|
785
785
|
ansible_test/_internal/cli/__init__.py,sha256=kTB7TfN12k_VJGMXEuOSlu3huruIUTb8UIFkaFyMr_I,1427
|
|
786
786
|
ansible_test/_internal/cli/actions.py,sha256=D3z2FdpJC1dpQR9Vu1662wW28_iqPpWeAC3rizzjVAA,3366
|
|
787
|
-
ansible_test/_internal/cli/compat.py,sha256=
|
|
787
|
+
ansible_test/_internal/cli/compat.py,sha256=U0JGicJeKB7eA0RqX9P_P_P9CZ860u-1EjPtGKXCaqc,23101
|
|
788
788
|
ansible_test/_internal/cli/completers.py,sha256=ud_lWP3BnwCVKdfnoWA-PozQSiUe_Afr7Z3UkddxrTU,1104
|
|
789
789
|
ansible_test/_internal/cli/converters.py,sha256=BQNrH93cXDTGVR07PU_0QjYdcaDbH5_lCJE0mdwdEEM,572
|
|
790
790
|
ansible_test/_internal/cli/environments.py,sha256=jF0qVZcfvW-cNtISEWmZ9Rp8RQQvhKBNR4oCkjQtecc,19956
|
|
@@ -1001,9 +1001,9 @@ ansible_test/config/cloud-config-vultr.ini.template,sha256=XLKHk3lg_8ReQMdWfZzhh
|
|
|
1001
1001
|
ansible_test/config/config.yml,sha256=wb3knoBmZewG3GWOMnRHoVPQWW4vPixKLPMNS6vJmTc,2620
|
|
1002
1002
|
ansible_test/config/inventory.networking.template,sha256=bFNSk8zNQOaZ_twaflrY0XZ9mLwUbRLuNT0BdIFwvn4,1335
|
|
1003
1003
|
ansible_test/config/inventory.winrm.template,sha256=1QU8W-GFLnYEw8yY9bVIvUAVvJYPM3hyoijf6-M7T00,1098
|
|
1004
|
-
ansible_core-2.16.
|
|
1005
|
-
ansible_core-2.16.
|
|
1006
|
-
ansible_core-2.16.
|
|
1007
|
-
ansible_core-2.16.
|
|
1008
|
-
ansible_core-2.16.
|
|
1009
|
-
ansible_core-2.16.
|
|
1004
|
+
ansible_core-2.16.10.dist-info/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
1005
|
+
ansible_core-2.16.10.dist-info/METADATA,sha256=KVJq3H_BN0jM95kphyHF__p0oVeHFoPS6jlwFtQb5DA,6906
|
|
1006
|
+
ansible_core-2.16.10.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
1007
|
+
ansible_core-2.16.10.dist-info/entry_points.txt,sha256=0mpmsrIhODChxKl3eS-NcVQCaMetBn8KdPLtVxQgR64,453
|
|
1008
|
+
ansible_core-2.16.10.dist-info/top_level.txt,sha256=IFbRLjAvih1DYzJWg3_F6t4sCzEMxRO7TOMNs6GkYHo,21
|
|
1009
|
+
ansible_core-2.16.10.dist-info/RECORD,,
|
|
@@ -93,7 +93,10 @@ class PythonVersionUnspecifiedError(ApplicationError):
|
|
|
93
93
|
"""A Python version was not specified for a context which is unknown, thus the Python version is unknown."""
|
|
94
94
|
|
|
95
95
|
def __init__(self, context: str) -> None:
|
|
96
|
-
super().__init__(
|
|
96
|
+
super().__init__(
|
|
97
|
+
f'Environment `{context}` is unknown. Use a predefined environment instead. '
|
|
98
|
+
f'Alternatively, to use an unknown environment, use the `--python` option to specify a Python version.'
|
|
99
|
+
)
|
|
97
100
|
|
|
98
101
|
|
|
99
102
|
class ControllerNotSupportedError(ApplicationError):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|