Implementing DevOps with Ansible 2 by Jonathan McAllister

Implementing DevOps with Ansible 2 by Jonathan McAllister

Author:Jonathan McAllister [McAllister, Jonathan]
Language: eng
Format: azw3, mobi, epub
Tags: COM088000 - COMPUTERS / System Administration / General, COM091000 - COMPUTERS / Cloud Computing, COM051440 - COMPUTERS / Software Development and Engineering / Tools
Publisher: Packt Publishing
Published: 2017-07-21T04:00:00+00:00


The do until iterator

The Do...Until iterator has been around for a long time in many programming languages. It is probably one of the most widely implemented iterators that exist. This specific iteration solution provides the developer with the ability to continuously loop through a sequence of code until a specific condition or flag is met. Let's look at a traditional programming example of a Do...Until loop versus an Ansible implementation of the same operator:

VB.NET example:

' This example is a VB.NET example of a Do Loop

Do

Debug.Write(“Counter: " & index.ToString)

index += 1

Loop Until index > 5

Ansible Do...Until example:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.