#ansible - October 2020

ansibleArchived
1 messages

Discussions related to ansible configuration management

October 2020
Brij S
Brij Sabout 6 years ago
Hey guys, I can’t seem to get regex_replace to work with the following:
account_type: "{{ caller_info.account_alias| regex_replace('([a-z]*$)/', '\\1') }}"

For example,
caller_info.account_alias =org-dig-sandbox-nonprod
account_type should return nonprod

The regex seems to work on regex101 online 🤔 am I missing anything