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 virtual environment for ansible 2.0.0.2 #4325

Merged
merged 3 commits into from
Mar 31, 2020

Conversation

xumia
Copy link
Collaborator

@xumia xumia commented Mar 26, 2020

- What I did
Install virtual environment for ansible 2.0.0.2

- How I did it

- How to verify it
. env-201811/bin/activate
The ansible 2.0.0.2 will be used.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@lguohan
Copy link
Collaborator

lguohan commented Mar 26, 2020

how to use? example?

@@ -147,4 +148,8 @@ RUN azure-cli_bundle_*/installer
# TODO: if azure-cli contains newer version azure-keyvault, remove this
RUN ~/lib/azure-cli/bin/python -m pip install azure-keyvault==0.3.7 -U

# Install Virtual Environment
RUN python -m virtualenv --system-site-packages env-201803
RUN env-201803/bin/pip install ansible==2.0.0.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

201811?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, do we have 2.0.0.2-1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to 201811. I only find 2.0.0.2, there are no 2.0.0.2-1.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call the command ". env-201811/bin/activate" to initialize the environment. You will use ansible 2.0.0.2. The other python packages will use the same as system default ones. Only overwrite the ansible and its dependency packages.

@lguohan lguohan requested a review from yxieca March 26, 2020 20:28
@yxieca yxieca self-requested a review March 30, 2020 21:49
@lguohan lguohan merged commit 2c97321 into sonic-net:master Mar 31, 2020
rlhui pushed a commit that referenced this pull request Jul 7, 2020
. env-201811/bin/activate

The ansible 2.0.0.2 will be used.
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request May 28, 2021
…net#4325)

. env-201811/bin/activate

The ansible 2.0.0.2 will be used.
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

Successfully merging this pull request may close these issues.

None yet

3 participants