Добавлена роль repo для автоматического добавления репозиториев

- Создана новая роль repo для добавления репозиториев на все ОС
- Добавлена поддержка Docker, PostgreSQL, Elasticsearch, Patroni репозиториев
- Реализована специальная поддержка российских дистрибутивов:
  - Astra Linux: добавлены репозитории Lab50 и debian-archive-keyring
  - Alt Linux: добавлены репозитории Sisyphus (alt-sisyphus, classic, contrib) и Autoimports
- Обновлена документация README.md с информацией о новой роли
- Обновлен .ansible-lint для подавления необходимых правил
- Автор: Сергей Антропов, https://devops.org.ru
This commit is contained in:
Сергей Антропов
2025-10-30 03:13:35 +03:00
parent a2316ae780
commit 23e1a6037b
25 changed files with 2495 additions and 1038 deletions

View File

@@ -52,6 +52,7 @@
when:
- python_distribution in ['ubuntu', 'debian']
- python_repositories[python_distribution] is defined
- item.when is not defined or (item.when | default(true))
ignore_errors: true
- name: "Добавление репозиториев для RHEL-семейства"
@@ -126,6 +127,7 @@
when:
- python_current_build_deps | length > 0
- python_current_package_manager == 'swupd'
changed_when: false
ignore_errors: true
# =============================================================================
@@ -158,6 +160,7 @@
- python_current_package_manager == 'swupd'
- python_version_check.rc != 0
register: python_package_install
changed_when: false
ignore_errors: true
# =============================================================================
@@ -418,7 +421,9 @@
pip_latest_version: "{{ pip_version_info.json.info.version }}"
when:
- pip_version_info is defined
- pip_version_info.status == 200
- (pip_version_info.status | default(200)) == 200
- pip_version_info.json is defined
- pip_version_info.json.info is defined
- name: "Проверка текущей версии pip"
command: "{{ python_current_pip }} --version"

File diff suppressed because it is too large Load Diff