Fix replacement pattern.

This commit is contained in:
Robert de Bock 2019-12-10 07:13:35 +01:00
parent a12ed2f8f8
commit 693cf54ad0
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ This example is taken from `molecule/resources/playbook.yml` and is tested on ea
The machine you are running this on, may need to be prepared, I use this playbook to ensure everything is in place to let the role work. The machine you are running this on, may need to be prepared, I use this playbook to ensure everything is in place to let the role work.
```yaml ```yaml
{% if prepare.content is defined %} {% if prepare.content is defined %}
{{ prepare.content | b64decode | regex_replace('ansible-role-', '{{ galaxy_namespace }}.') }}``` {{ prepare.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
{% else %} {% else %}
No preparation required. No preparation required.
``` ```
@ -26,7 +26,7 @@ No preparation required.
{% if verifyyml.content is defined %} {% if verifyyml.content is defined %}
After running this role, this playbook runs to verify that everything works, this may be a good example how you can use this role. After running this role, this playbook runs to verify that everything works, this may be a good example how you can use this role.
```yaml ```yaml
{{ verifyyml.content | b64decode | regex_replace('ansible-role-', '{{ galaxy_namespace }}.') }} {{ verifyyml.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
``` ```
{% endif %} {% endif %}