Skip to content

Instantly share code, notes, and snippets.

@chrismeyersfsu
Created February 5, 2025 20:31
Show Gist options
  • Save chrismeyersfsu/43515f6b87c8f4373e0667f526abc33b to your computer and use it in GitHub Desktop.
Save chrismeyersfsu/43515f6b87c8f4373e0667f526abc33b to your computer and use it in GitHub Desktop.
simple loop
---
- name: Loop 50 times with debug and sleep
hosts: localhost
gather_facts: false
tasks:
- name: Sleep for 1 second
ansible.builtin.pause:
seconds: 1
with_items: "{{ range(1, 51) | list }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment