From 271213d1ca4d7ed71679b6e9095cb80e55e4de8e Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Tue, 18 Aug 2026 12:26:00 +0400 Subject: [PATCH] CHANGE: adds ansible requirements file and a script for updating it on production machines, updates pip requirements --- requirements.txt | 9 +++++++-- requirements.yaml | 17 +++++++++++++++++ update_modules.sh | 12 ++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 requirements.yaml create mode 100755 update_modules.sh diff --git a/requirements.txt b/requirements.txt index bb5d472..9c2d48e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,29 +4,34 @@ ansible-lint==26.6.0 attrs==26.1.0 black==26.5.1 bracex==3.0 +certifi==2026.7.22 cffi==2.1.0 +charset-normalizer==3.4.9 click==8.4.2 cryptography==49.0.0 distro==1.9.0 filelock==3.29.7 +idna==3.18 Jinja2==3.1.6 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 MarkupSafe==3.0.3 mypy_extensions==1.1.0 +netaddr==1.3.0 packaging==26.2 pathspec==1.1.1 platformdirs==4.10.0 -proxmoxer>=2.3 +proxmoxer==2.3.0 pycparser==3.0 pytokens==0.4.1 PyYAML==6.0.3 referencing==0.37.0 -requests>=2.34.2 +requests==2.34.2 resolvelib==1.2.1 rpds-py==2026.6.3 ruamel.yaml==0.19.1 ruamel.yaml.clib==0.2.15 subprocess-tee==0.4.2 +urllib3==2.7.0 wcmatch==11.0 yamllint==1.38.0 diff --git a/requirements.yaml b/requirements.yaml new file mode 100644 index 0000000..bec0b55 --- /dev/null +++ b/requirements.yaml @@ -0,0 +1,17 @@ +--- + +collections: + - name: ansible.posix + version: 2.2.2 + + - name: ansible.utils + version: 6.0.3 + + - name: community.general + version: 13.2.0 + + - name: community.library_inventory_filtering_v1 + version: 1.1.5 + + - name: community.proxmox + version: 2.0.0 diff --git a/update_modules.sh b/update_modules.sh new file mode 100755 index 0000000..624d2e5 --- /dev/null +++ b/update_modules.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +source .venv/bin/activate + +# Install python packages +pip install -r requirements.txt + +# Install collections from the file +ansible-galaxy collection install -r requirements.yml -p ./collections/ + +# Install roles +ansible-galaxy role install -r requirements.yml -p ./roles/