Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fix `raw_vars` feature to properly handle int values ([#959](https://github.com/roots/trellis/pull/959))
* [BREAKING] Update Ansible default plugin paths in config files ([#958](https://github.com/roots/trellis/pull/958))
* Add Nginx `ssl.no-default.conf` to drop requests for unknown hosts ([#888](https://github.com/roots/trellis/pull/888))
* [BREAKING] Disable memcached UDP support by default ([#955](https://github.com/roots/trellis/pull/955))
Expand Down
3 changes: 3 additions & 0 deletions lib/trellis/plugins/callback/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def raw_triage(self, key_string, item, patterns):
match = next((pattern for pattern in patterns if re.match(pattern, key_string)), None)
return AnsibleUnicode(''.join(['{% raw %}', item, '{% endraw %}'])) if not item.startswith(('{% raw', '{%raw')) and match else item

else:
return item

def raw_vars(self, play, host, hostvars):
if 'raw_vars' not in hostvars:
return
Expand Down