Example of how to do a for each (foreach) loop in a task with a predefined dictionary.
Example on Python
for key, value in dictionary.items():
# do stuff
Example on PHP
foreach ($dictionary as $key => $value) {
# do stuff
}
Example of how to do a for each (foreach) loop in a task with a predefined dictionary.
Example on Python
for key, value in dictionary.items():
# do stuff
Example on PHP
foreach ($dictionary as $key => $value) {
# do stuff
}
Ansible provide an easy way to encrypt or decrypt files to keep sensitive data in our playbooks. For example, you can have a template which has some username and password and you can keep encrypted.