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
When clicking on Run Ansible Playbook in Docker this works fine witch the default microsoft/ansible:latest dockerimage. When changing the value Terminal Init Command the playbook doesn't start automatically.
So the Button then is misleading because the Playbook did not start atomically.
To Fix this issue there should be a new variable for the config, to declare the docker image to use, when spinning up the docker container ( src/constants.ts ). Then the playbook should be starting automatically like the default microsoft/ansible:latest image.
Reproduce steps
Click on Run Ansible Playbook in Docker when Terminal Init Command is not default.
Expected Results
Playbook starts automatically with the docker start parameters defined in "Terminal Init Command" and / or with the custom docker image defined on config.
Actual Results
Docker container starts, but nothing is happening.
The text was updated successfully, but these errors were encountered:
@MrOffline77 thanks for reporting the issue. If user customize Terminal init command, whether playbook starts depends on your customization, user may want to reuse a docker instance in customization or etc, so the extension doesn't send ansible-playbook command to docker terminal today when user customized init command. While I got your scenario here, what you want is just customize docker image, but no change on docker execution flow. This sounds maybe a new configuration. We'll discuss it to see how to make it general. Stay tuned.
@yungezz yes you are right. The ability to change the default image would be great.
This is a great method for testing playbooks for various OS's. Thank you.
Environment
Summary
When clicking on
Run Ansible Playbook in Docker
this works fine witch the defaultmicrosoft/ansible:latest
dockerimage. When changing the valueTerminal Init Command
the playbook doesn't start automatically.So the Button then is misleading because the Playbook did not start atomically.
To Fix this issue there should be a new variable for the config, to declare the docker image to use, when spinning up the docker container (
src/constants.ts
). Then the playbook should be starting automatically like the defaultmicrosoft/ansible:latest
image.Reproduce steps
Click on
Run Ansible Playbook in Docker
whenTerminal Init Command
is not default.Expected Results
Playbook starts automatically with the docker start parameters defined in "Terminal Init Command" and / or with the custom docker image defined on config.
Actual Results
Docker container starts, but nothing is happening.
The text was updated successfully, but these errors were encountered: