Closed ageis closed 8 years ago
@ageis Hey, this is great. I have some complementary changes locally, I'll rebase on top of yours.
Two updates:
sudo
to become
(even in example playbooks)ansible
, since that's the version that deprecated sudo
We may have to check ansible_version
on tasks using the regex_replace
filter and escape the backreferences accordingly. From the docs:
Prior to ansible 2.0, if “regex_replace” filter was used with variables inside YAML arguments (as opposed to simpler ‘key=value’ arguments), then you needed to escape backreferences (e.g. \1) with 4 backslashes (\) instead of 2 ().
Will need to do further testing, but I'm pretty sure we have to only one of the escaping styles. If we want to support v1.9, we can use a version check. After more testing to confirm the behavior I'll open a separate issue if it's a problem.
@conorsch R