Functions In Ansible - CloudAffaire
https://cloudaffaire.com/functions-in-ansible06.09.2019 · Specifically, a function contains a unit of code that works on various inputs, many of which are variables, and produces concrete results involving changes to variable values or actual operations based on the inputs. In Ansible functions are called filters and are used for transforming data inside a template expression.
String Operations in Ansible - Stack Overflow
https://stackoverflow.com/questions/3427369813.12.2015 · I am trying to check the distribution of a box I am deploying to with ansible. I have a database that has something like "ubuntu lucid" in a column for distro and I want to check both the distribution ansible_distribution and ansible_distribution_release.Is there a way to either concatenate those two strings to match them against my database value or to split the …
String Operations in Ansible - Stack Overflow
stackoverflow.com › questions › 34273698Dec 14, 2015 · I am trying to check the distribution of a box I am deploying to with ansible. I have a database that has something like "ubuntu lucid" in a column for distro and I want to check both the distribution ansible_distribution and ansible_distribution_release. Is there a way to either concatenate those two strings to match them against my database ...