chore(ansible,awx): improve installation commands

This commit is contained in:
Michele Cereda
2025-07-28 17:25:45 +02:00
parent da27faa93e
commit a853e30c1e
3 changed files with 13 additions and 8 deletions

View File

@@ -60,9 +60,13 @@
<details> <details>
<summary>Setup</summary> <summary>Setup</summary>
> [!tip]
> Prefer installing Ansible in a project's Python virtual environment.
```sh ```sh
# Install. # Install.
pip3 install --user 'ansible' pipx install 'ansible'
pip3 install --user --require-virtualenv 'ansible'
brew install 'ansible' 'sshpass' # darwin brew install 'ansible' 'sshpass' # darwin
sudo pamac install 'ansible' 'sshpass' # manjaro linux sudo pamac install 'ansible' 'sshpass' # manjaro linux
@@ -1688,7 +1692,6 @@ Another _better (?)_ solution in playbooks/roles would be to sanitize the input
[Rundeck]: rundeck.md [Rundeck]: rundeck.md
[Semaphore UI]: semaphoreui.md [Semaphore UI]: semaphoreui.md
<!-- Files --> <!-- Files -->
[examples]: ../examples/ansible/ [examples]: ../examples/ansible/
[examples templating]: ../examples/ansible/templating.yml [examples templating]: ../examples/ansible/templating.yml

View File

@@ -958,8 +958,9 @@ AWX offers the `awx` client CLI tool:
```sh ```sh
# Install the 'awx' client # Install the 'awx' client
pipx install 'awxkit' # As of 2025-07-28, Python 3.11 is the last Python version for which the AWX CLI works correctly.
pip3 install --user 'awxkit' pipx install --python '3.11' 'awxkit'
pip3.11 install --user 'awxkit'
``` ```
> [!tip] > [!tip]

View File

@@ -1,9 +1,10 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# Install the 'awx' client # Install the 'awx' client.
pipx install 'awxkit' # As of 2025-07-28, Python 3.11 is the last Python version for which the AWX CLI works correctly.
pip3 install --user 'awxkit' pipx install --python '3.11' 'awxkit'
pip install 'git+https://github.com/ansible/awx.git@24.6.1#egg=awxkit&subdirectory=awxkit' pip3.11 install --user 'awxkit'
pip3.11 install 'git+https://github.com/ansible/awx.git@24.6.1#egg=awxkit&subdirectory=awxkit'
# Normally `awx` would require setting the configuration every command like so: # Normally `awx` would require setting the configuration every command like so:
# awx --conf.host https://awx.example.org --conf.username 'admin' --conf.password 'password' config # awx --conf.host https://awx.example.org --conf.username 'admin' --conf.password 'password' config