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>
This commit is contained in:
parent
1f1d6e5aec
commit
5709173c32
2 changed files with 9 additions and 0 deletions
2
changelogs/fragments/with_seq_example.yml
Normal file
2
changelogs/fragments/with_seq_example.yml
Normal file
|
@ -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…
Reference in a new issue