Hi,
I'm trying to build a playbook using set_fact but the template seems
to expand when I test locally on OSX but not when I invoke ansible via
Jenkins on Linux. Here's the line:
- set_fact:
snapshot_id: "production-snapshot-{{ 2000000000 | random |
to_uuid | replace('-', '') | truncate(12, end='') }}"
When I test this value gets set correctly to something like
"production-snapshot-4d378e43eede". When I invoke this in Jenkins the
value is "production-snapshot-". There's no other output or error
message besides the truncated value.
Any idea what's going on here? Is this a bug?
brian