Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables templated again #12313

Closed
bretmartin opened this issue Sep 10, 2015 · 2 comments
Closed

Environment variables templated again #12313

bretmartin opened this issue Sep 10, 2015 · 2 comments
Labels
bug This issue/PR relates to a bug. P2 Priority 2 - Issue Blocks Release
Milestone

Comments

@bretmartin
Copy link
Contributor

@jimi-c #12191 has resurfaced. Please see that issue for a test case, which now fails again.

ansible-playbook --vault-password-file=~/.ansible_vault_password \
                playbook-test-12238.yml --limit=localhost -vvvv
No config file found; using defaults
1 plays in playbook-test-12238.yml
Loaded callback default of type stdout, v2.0

PLAY ***************************************************************************

TASK [setup] *******************************************************************
ESTABLISH LOCAL CONNECTION FOR USER: bam
localhost EXEC (umask 22 && mkdir -p "$HOME/.ansible/tmp/ansible-tmp-1441909260.33-28122013476446" && echo "$HOME/.ansible/tmp/ansible-tmp-1441909260.33-28122013476446")
localhost PUT /var/folders/n7/wrg1c7615892m2qgyv8r_yg00000gn/T/tmpHVzILN TO /Users/bam/.ansible/tmp/ansible-tmp-1441909260.33-28122013476446/setup
localhost EXEC LANG=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /Users/bam/.ansible/tmp/ansible-tmp-1441909260.33-28122013476446/setup; rm -rf "/Users/bam/.ansible/tmp/ansible-tmp-1441909260.33-28122013476446/" > /dev/null 2>&1
ok: [localhost]
ERROR! template error while templating string: unexpected '|'
@bcoca bcoca added bug_report P2 Priority 2 - Issue Blocks Release labels Sep 10, 2015
@bcoca bcoca added this to the v2 milestone Sep 10, 2015
@jimi-c jimi-c closed this as completed in 292e2da Sep 10, 2015
@jimi-c
Copy link
Member

jimi-c commented Sep 10, 2015

Sorry about that @bretmartin, I had some logic mistakes related to the split in the facts/non-persistent facts caching from earlier. The above patch should correct this.

Thanks!

@bretmartin
Copy link
Contributor Author

Confirmed to be fixed again -- thanks.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. P2 Priority 2 - Issue Blocks Release
Projects
None yet
Development

No branches or pull requests

4 participants