Loop state
Allows for looping over execution modules.
New in version 2017.7.0.
wait_for_service_to_be_healthy: loop.until: - name: boto_elb.get_instance_health - condition: m_ret[0]['state'] == 'InService' - period: 5 - timeout: 20 - m_args: - {{ elb }} - m_kwargs: keyid: {{ access_key }} key: {{ secret_key }} instances: "{{ instance }}"
Warning
This state allows arbitrary python code to be executed through the condition parameter which is literally evaluated within the state. Please use caution.
Loop over an execution module until a condition is met.
m_ret
which is the return from the execution module.
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.loop.html