From c76f9f492b065e600c44d64d3806ef9a2f813017 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Thu, 16 Jul 2020 17:11:23 -0500 Subject: [PATCH 1/2] Add instructions to use ansible filters --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index b34a436..9827f29 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,13 @@ Pass: {{ env("USER_PASSWORD") }} Notice that there must be quotes around the environment variable name +### Ansible Filters +You can use the `jinja2-ansible-filters` package like so: + +- `pipr install jinja2-ansible-filters` +- `ansiblefilters_path=$(python3 -c "import jinja2_ansible_filters; print(jinja2_ansible_filters.core_filters.__file__)")` +- Then invoke with: `j2 --filters=$ansiblefilters_path [...]` Customization From 51ac19c09db1c23451bfbcef1903a6e1a6363d8e Mon Sep 17 00:00:00 2001 From: David Arnold Date: Thu, 16 Jul 2020 17:12:10 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9827f29..39d20fc 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,7 @@ Notice that there must be quotes around the environment variable name You can use the `jinja2-ansible-filters` package like so: -- `pipr install jinja2-ansible-filters` +- `pip3 install jinja2-ansible-filters` - `ansiblefilters_path=$(python3 -c "import jinja2_ansible_filters; print(jinja2_ansible_filters.core_filters.__file__)")` - Then invoke with: `j2 --filters=$ansiblefilters_path [...]`