From 822448ce70cc1a09b3790414e62f50038a14f236 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 10 Dec 2024 11:07:09 -0500 Subject: [PATCH] ansible: Set required ansible and ansible-core versions ansible-core 2.17 drops support for Python2 and Python 3 < 3.7. Python 2 is used for SLES12, and Python 3.6 is used on EL8. Change-Id: Ic233ecb219caf46117c3d5bbdd2ec1f2ca5045c3 Signed-off-by: Kienan Stewart --- automation/ansible/README.md | 27 ++++++++++++++++++--------- automation/ansible/requirements.txt | 2 ++ 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 automation/ansible/requirements.txt diff --git a/automation/ansible/README.md b/automation/ansible/README.md index 1204bac..cf434a0 100644 --- a/automation/ansible/README.md +++ b/automation/ansible/README.md @@ -1,16 +1,25 @@ -# Setup on Ubuntu +# Setup -``` -apt install ansible ansible-mitogen -``` +1. Install system requirements -# Required collections + apt install python3-pip -``` -ansible-galaxy install -r roles/requirements.yml -``` +2. Install project dependencies + + pip3 install --user requirements.txt # --break-system-packages + # Note: --break-system-packages is required on recent Debian versions + +3. (Optional) Install mitogen on Debian/Ubuntu: + + apt install ansible-mitogen + +4. Install required ansible collections + + ansible-galaxy install -r roles/requirements.yml + +5. Install the Bitwarden command-line client -# Privileged data +## Privileged data Privileged data is stored in Bitwarden. To use roles that fetch privileged data, the following utilities must be available: diff --git a/automation/ansible/requirements.txt b/automation/ansible/requirements.txt new file mode 100644 index 0000000..a42d288 --- /dev/null +++ b/automation/ansible/requirements.txt @@ -0,0 +1,2 @@ +ansible==9.13.0 +ansible-core==2.16.14 -- 2.39.5