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

Support arbitrary ansible args in the container image run script #96

Open
etsauer opened this issue Jan 21, 2019 · 2 comments
Open

Support arbitrary ansible args in the container image run script #96

etsauer opened this issue Jan 21, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@etsauer
Copy link
Contributor

etsauer commented Jan 21, 2019

No description provided.

@oybed
Copy link
Contributor

oybed commented Jan 21, 2019

@oybed oybed added the enhancement New feature or request label Jan 21, 2019
@rdebeasi
Copy link
Contributor

rdebeasi commented Jan 21, 2019

Here's an example use case:

Once you've set up all the requirements, running the applier locally is pretty easy! The command is:

ansible-playbook apply.yml -i inventory/

With the docker image, getting the requirements is of course simpler, but the command gets way more complicated. Here's the Docker equivalent of the command above.

docker run -u $(id -u) \
  -v $HOME/.kube/config:/openshift-applier/.kube/config:z
  -v $HOME/src/my-inventory/:/tmp/my-inventory
  -e INVENTORY_PATH=/tmp/my-inventory
  -t redhat-cop/openshift-applier

For a new user, it's not clear how to modify this command to get it to run the local inventory/ directory. The feature proposed in this issue would (I think)! make the docker command as simple as the local ansible command.

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

No branches or pull requests

3 participants