complex_data_manipulation.rst (ansible-2.14.0) | : | complex_data_manipulation.rst (ansible-2.14.1rc1) | ||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
.. _exponential_backoff: | .. _exponential_backoff: | |||
Use a loop to create exponential backoff for retries/until. | Use a loop to create exponential backoff for retries/until. | |||
.. code-block:: yaml | .. code-block:: yaml | |||
- name: retry ping 10 times with exponential backoff delay | - name: retry ping 10 times with exponential backoff delay | |||
ping: | ping: | |||
retries: 10 | retries: 10 | |||
delay: '{{item|int}}' | delay: '{{item|int}}' | |||
loop: '{{ range(1, 10)|map('pow', 2) }}' | loop: '{{ range(1, 10)|map("pow", 2) }}' | |||
.. _keys_from_dict_matching_list: | .. _keys_from_dict_matching_list: | |||
Extract keys from a dictionary matching elements from a list | Extract keys from a dictionary matching elements from a list | |||
------------------------------------------------------------ | ------------------------------------------------------------ | |||
The Python equivalent code would be: | The Python equivalent code would be: | |||
.. code-block:: python | .. code-block:: python | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |