Difference between revisions of "ansible upgrade notes"
From thelinuxwiki
(Created page with "performing upgrade in a virtual environment install python virtual environment binaries $ '''sudo apt install python3.11-venv''' create a virtual environment $ '''sudo pyt...") |
|||
| Line 12: | Line 12: | ||
activate virtual environment (it is usable without sourcing if using pull paths to bin files) | activate virtual environment (it is usable without sourcing if using pull paths to bin files) | ||
$ '''source /usr/local/venv/bin/activate''' | $ '''source /usr/local/venv/bin/activate''' | ||
| − | + | (venv) $ '''sudo /usr/local/venv/bin/python -m pip install ansible''' | |
| − | (venv) $ '''sudo /usr/local/venv/bin/python -m pip install ansible''' | + | |
Collecting ansible | Collecting ansible | ||
Downloading ansible-11.3.0-py3-none-any.whl (54.2 MB) | Downloading ansible-11.3.0-py3-none-any.whl (54.2 MB) | ||
Latest revision as of 01:07, 28 February 2025
performing upgrade in a virtual environment
install python virtual environment binaries
$ sudo apt install python3.11-venv
create a virtual environment
$ sudo python3 -m venv /usr/local/venv/
setting ownership for shared environment
$ sudo chown -R ansible:ansible /usr/local/venv
activate virtual environment (it is usable without sourcing if using pull paths to bin files)
$ source /usr/local/venv/bin/activate
(venv) $ sudo /usr/local/venv/bin/python -m pip install ansible
Collecting ansible
Downloading ansible-11.3.0-py3-none-any.whl (54.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.2/54.2 MB 4.0 MB/s eta 0:00:00
Collecting ansible-core~=2.18.3
Downloading ansible_core-2.18.3-py3-none-any.whl (2.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 27.4 MB/s eta 0:00:00
...
Installing collected packages: ansible-core, ansible
Attempting uninstall: ansible-core
Found existing installation: ansible-core 2.15.0
Uninstalling ansible-core-2.15.0:
Successfully uninstalled ansible-core-2.15.0
Successfully installed ansible-11.3.0 ansible-core-2.18.3