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

Docker run playbook broken / new variable #163

Closed
MrOffline77 opened this issue Sep 5, 2018 · 3 comments
Closed

Docker run playbook broken / new variable #163

MrOffline77 opened this issue Sep 5, 2018 · 3 comments
Assignees

Comments

@MrOffline77
Copy link

Environment

  • Extension version: newest
  • OS Type: MacOS High Sierra

Summary

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.

@yungezz
Copy link
Contributor

yungezz commented Sep 6, 2018

@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 yungezz self-assigned this Sep 6, 2018
@MrOffline77
Copy link
Author

@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.

@yungezz
Copy link
Contributor

yungezz commented Sep 13, 2018

supported in release 0.4.0

@yungezz yungezz closed this as completed Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants