with_sequenceを使う

- debug: msg="{{ item }}"
with_sequence: count=5

https://docs.ansible.com/ansible/devel/plugins/lookup/sequence.html

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.