You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a molecule test that needs some vars from either user input if being run manually, or --extra-vars if being run in CI. Some are private, others aren't.
As a result, I have this in converge.yml:
vars_prompt:
- name: item_1prompt: Value for item_1private: no
- name: item_2prompt: Value for item_2private: yes
If I run this, I get the usual molecule output to start with:
...
INFO Dependency completed successfully.
INFO Running default > create
WARNING Skipping, instances already created.
INFO Running default > prepare
WARNING Skipping, instances already prepared.
INFO Running default > converge
INFO Sanity checks: 'docker'
And then it stops and waits for input without displaying any prompt.
If I blindly answer the prompt I'm then shown the prompt for item_2, the private one and can answer that. after answering prompt two, I then see the prompt for item_1 output! Like so:
INFO Running default > converge
INFO Sanity checks: 'docker'
a
Value for item_2:
Value for item_1:
PLAY [Converge] ****************************************************************
TASK [Gathering Facts] *********************************************************
ok: [app-server]
TASK [debug 1] *****************************************************************
ok: [app-server] => {
"item_1": "a"
}
TASK [debug 2] *****************************************************************
ok: [app-server] => {
"item_2": "b"
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing a molecule test that needs some vars from either user input if being run manually, or
--extra-vars
if being run in CI. Some are private, others aren't.As a result, I have this in
converge.yml
:If I run this, I get the usual molecule output to start with:
And then it stops and waits for input without displaying any prompt.
If I blindly answer the prompt I'm then shown the prompt for item_2, the private one and can answer that.
after answering prompt two, I then see the prompt for item_1 output! Like so:
Is this a molecule bug? Any ideas on workarounds?
Beta Was this translation helpful? Give feedback.
All reactions