Commit a0a4eca5 authored by Torsten Nielsen's avatar Torsten Nielsen
Browse files

Minor additions to README.md

parent 177cac6c
......@@ -40,9 +40,11 @@ Since Ansible version 2.10 the default install has changed to a more modular ins
Se more here: [Ansible 3.0.0 blog post](https://blog.while-true-do.io/ansible-release-3-0-0/) and [Ansible.com blog post](https://www.ansible.com/blog/ansible-3.0.0-qa) or [Ansible 3 Release Notes](https://github.com/ansible-community/ansible-build-data/blob/main/3/CHANGELOG-v3.rst) or [Ansible 4 Release Notes](https://github.com/ansible-community/ansible-build-data/blob/c4ab2b13b7dca1ac14c49e5f56e5185fba500d87/4/CHANGELOG-v4.rst)
For [The latest version](https://pypi.org/project/ansible/) and [code](https://github.com/ansible/ansible) or even the [roadmap of Ansible](https://docs.ansible.com/ansible/devel/roadmap/ansible_roadmap_index.html).
# How to set up and use Python virtual environments for Ansible
> Python provides different ways to create virtual environments. In this guide Python virtual environments provided by the `venv` module are used. An more featureful alternative could be [virtualenv](https://virtualenv.pypa.io/en/stable/) as demonstrated in the [Ansible doc](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-in-a-virtual-environment-with-pip). Install `python3-virualenv` to use that. Maybe take a look at [Pyenv](https://github.com/pyenv/pyenv).
> Python provides different ways to create virtual environments. In this guide Python virtual environments provided by the `venv` module are used. A more featureful alternative could be [virtualenv](https://virtualenv.pypa.io/en/stable/) as demonstrated in the [Ansible doc](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-in-a-virtual-environment-with-pip). Install `python3-virualenv` to use that. Maybe take a look at [Pyenv](https://github.com/pyenv/pyenv).
### Why use Python virtual environments for Ansible development?
------------------------------------------------------------
......@@ -54,7 +56,7 @@ Ansible is based on Python and leverages many Python modules and plugins. When y
## Get set up with Ansible in virtual environment
-------------------------------------------------
Install the Python programs:
Install the Python programs (on Ubuntu):
$ sudo apt install python3-pip python3-venv python3-argcomplete cowsay
$ python3 -V
......@@ -342,7 +344,7 @@ There is a [VS Code plugin for Ansible](https://marketplace.visualstudio.com/ite
For an extra bit of fun
-----------------------
Install cowsay to add a bit of fun to your Ansible output:
Install cowsay to add a bit of fun to your Ansible output (can be disabled in `ansible.cfg`):
$ sudo apt install cowsay
$ cowsay Hello!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment