Ansible-Playbook Example2: Loop, with_sequence

Loop and with_sequence allows the commands or the instructions to be executed iteratively. However, I find the syntax bit different from other programming language. Probably this is due to YAML structure. Anyways, lets see few examples and see how to use loop and with_sequence. You can find the official documentation on loop here and on with_sequence here. The list of examples are as follows:

    • Generate empty file from a list (using with_items) (.yml file)
    • Generate empty file from a list (using loop)(.yml file)
    • Generate empty files with pattern (.yml file)

Read more….

296total visits,2visits today

Leave a Reply

Your email address will not be published. Required fields are marked *