Problem: Cannot read vars from a json or yaml file #2824
Unanswered
dev-at-webid-solutions-dot-de
asked this question in
Q&A
Replies: 1 comment
-
Can't confirm. Works in 2.13.0. You should provide CLI args like this: ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
Hi,
it is not possible to pass variables to ansible-playbook with
-e @file.yml
or-e @file.json
as descripted in the official ansible docs.This special syntax cannot be used in the extra variables section of an environment, because this expects a key-value pair.
I tried to specify it as a
-e @le***/***.yml
cli-argument in a task, but it doesn't work.I took a look at the log and maybe found the reason. A blank is added before the at-sign (@), which maybe prevent the right intepretation by ansible, which normally would transform such an argument into an absolute path, if possible. See attached image
Kind regards
dev@webid
Impact
Ansible (task execution)
Installation method
Docker
Database
MySQL
Browser
Firefox
Semaphore Version
2.10.43
Ansible Version
Logs & errors
Manual installation - system information
No response
Configuration
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions