with_sequence: example using vars (#69369)

Added an example for using vars in with_sequence.

Fixes: #68836

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/70431/head
Abhijeet Kasurde 4 years ago committed by GitHub
parent 1f1d6e5aec
commit 5709173c32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Add an example for using var in with_sequence (https://github.com/ansible/ansible/issues/68836).

@ -60,6 +60,13 @@ EXAMPLES = """
- name: the final countdown
debug: msg={{item}} seconds to detonation
with_sequence: end=0 start=10
- name: Use of variable
debug:
msg: "{{ item }}"
with_sequence: start=1 end="{{ end_at }}"
vars:
- end_at: 10
"""
RETURN = """

Loading…
Cancel
Save