| Summary: | Не правильное поведение в плане сбора фактов на ОС Альт Сервер | ||
|---|---|---|---|
| Product: | Branch p10 | Reporter: | Anton Shevtsov <shevtsov.anton> |
| Component: | ansible | Assignee: | qa-team <qa-team> |
| Status: | CLOSED WORKSFORME | QA Contact: | qa-p10 <qa-p10> |
| Severity: | normal | ||
| Priority: | P5 | CC: | amakeenk, shevtsov.anton |
| Version: | не указана | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
На 8СП (Сервер, Рабочая Станция), АСВ - проблем тоже нет. Проблема только на обычном сервере Не удаётся воспроизвести:
# rpm -q ansible-core && ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb'
ansible-core-2.14.3-alt3.noarch
{
"codename": "Mendelevium",
"description": "ALT Server 10.1 (Mendelevium)",
"id": "ALT",
"major_release": "10",
"release": "10.1"
}
# rpm -q ansible && ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb'
ansible-2.9.27-alt3.noarch
{
"codename": "Mendelevium",
"description": "ALT Server 10.1 (Mendelevium)",
"id": "ALT",
"major_release": "10",
"release": "10.1"
}
# cat /etc/os-release
NAME="ALT Server"
VERSION="10.1"
ID=altlinux
VERSION_ID=10.1
PRETTY_NAME="ALT Server 10.1 (Mendelevium)"
ANSI_COLOR="1;33"
CPE_NAME="cpe:/o:alt:server:10.1"
BUILD_ID="ALT Server 10.1"
HOME_URL="https://basealt.ru/"
BUG_REPORT_URL="https://bugs.altlinux.org/"
|
Если запускать на Рабочей Станции, то все хорошо, блок "ansible_lsb" заполнен ожидаемыми параметрами # ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb' "ansible_facts": { .... "ansible_lsb": { "codename": "Autolycus", "description": "ALT Workstation 10.1 (Autolycus)", "id": "ALT", "major_release": "10", "release": "10.1" } .... } Тоже самое и на Рабочей Станции К ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb' { "codename": "SorbaroniaMitschurinii", "description": "ALT Workstation K 10.1 (Sorbaronia Mitschurinii)", "id": "ALT", "major_release": "10", "release": "10.1" } Но на Альт Сервер - пустота ... "ansible_lsb": {}, ...