Problem scenario
You are using a variable in Ansible. You want to attach a string to it to augment this variable. You can rename it so later in the playbook you can call this modified, augmented version of the variable.
You assign the variable like this:
foo: ” {{ bar }}”
You want foo to have an extra string (e.g., “/subdirectory/path/to”). What do you do?
…
Continue reading “How Do You Prepend or Append to a Variable in Ansible?”