"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/docsite/rst/playbook_guide/shared_snippets/with2loop.txt" between
ansible-2.14.0.tar.gz and ansible-2.14.1rc1.tar.gz

About: Ansible is an IT Configuration Management, Deployment & Orchestration tool.
Release candidate.

with2loop.txt  (ansible-2.14.0):with2loop.txt  (ansible-2.14.1rc1)
skipping to change at line 149 skipping to change at line 149
.. code-block:: yaml+jinja .. code-block:: yaml+jinja
- name: with_sequence - name: with_sequence
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ item }}" msg: "{{ item }}"
with_sequence: start=0 end=4 stride=2 format=testuser%02x with_sequence: start=0 end=4 stride=2 format=testuser%02x
- name: with_sequence -> loop - name: with_sequence -> loop
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ 'testuser%02x' | format(item) }}" msg: "{{ 'testuser%02x' | format(item) }}"
# range is exclusive of the end point
loop: "{{ range(0, 4 + 1, 2)|list }}" loop: "{{ range(0, 4 + 1, 2)|list }}"
The range of the loop is exclusive of the end point.
with_subelements with_subelements
---------------- ----------------
``with_subelements`` is replaced by ``loop`` and the ``subelements`` filter. ``with_subelements`` is replaced by ``loop`` and the ``subelements`` filter.
.. code-block:: yaml+jinja .. code-block:: yaml+jinja
- name: with_subelements - name: with_subelements
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ item.0.name }} - {{ item.1 }}" msg: "{{ item.0.name }} - {{ item.1 }}"
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)