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

Installing git via ansible-playbook-wrapper does not work #34

Open
rvdh opened this issue Nov 21, 2017 · 0 comments
Open

Installing git via ansible-playbook-wrapper does not work #34

rvdh opened this issue Nov 21, 2017 · 0 comments

Comments

@rvdh
Copy link

rvdh commented Nov 21, 2017

When using the ansible-playbook-wrapper script to install requirements and run a playbook, requirements that are downloaded via git will fail because the apt-get install -y git command (https://github.com/William-Yeh/docker-ansible/blob/master/debian9-onbuild/ansible-playbook-wrapper#L26) fails:

build	21-Nov-2017 09:12:16	Reading package lists...
build	21-Nov-2017 09:12:16	Building dependency tree...
build	21-Nov-2017 09:12:16	Reading state information...
error	21-Nov-2017 09:12:16	E: Unable to locate package git

This, in turn, is because the Dockerfile removes the APT packages information: https://github.com/William-Yeh/docker-ansible/blob/master/debian9-onbuild/Dockerfile#L33

A possible fix would be to run apt-get update before the apt-get install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant