citrullux / VSTULabs

Лабораторные работы по обновлённым дисциплинам ВолгГТУ
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Lab3 #1

Open ZaitcAA opened 3 months ago

ZaitcAA commented 3 months ago

-После перехода на узел , происходит возврат в домашнюю папку, из-за чего для выполнения '$ ./init.sh' необходимо сначала вернуться в папку "Ansible". -При выполнении 6 шага при исполнении '$ sudo ./init.sh' получен вывод вида: PLAY [Nodes] *****

TASK [Gathering Facts] *** [WARNING]: Platform linux on host 10.0.2.15 is using the discovered Python interpreter at /usr/bin/python2.7, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. ok: [10.0.2.15]

TASK [InstallScreen] ***** [WARNING]: Updating cache and auto-installing missing dependency: python-apt fatal: [10.0.2.15]: FAILED! => {"changed": false, "cmd": "apt-get install —no-install-recommends python-apt -y -q", "msg": "E: Package 'python-apt' has no installation candidate", "rc": 100, "stderr": "E: Package 'python-apt' has no installation candidate\n", "stderr_lines": ["E: Package 'python-apt' has no installation candidate"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python-apt is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n python-apt-doc python3-apt-dbg:i386 python3-apt:i386 python3-apt-dbg\n python3-apt python-apt-common\n\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Package python-apt is not available, but is referred to by another package.", "This may mean that the package is missing, has been obsoleted, or", "is only available from another source", "However the following packages replace it:", " python-apt-doc python3-apt-dbg:i386 python3-apt:i386 python3-apt-dbg", " python3-apt python-apt-common", ""]}

PLAY RECAP *** 10.0.2.15 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

После установки пакета эквивалентного python-apt и повторного исполнения '$ sudo ./init.sh' получен вывод вида: PLAY [Nodes] *****

TASK [Gathering Facts] *** fatal: [10.0.2.15]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python2.7"}, "failed": true, "module_stderr": "Shared connection to 10.0.2.15 closed.\r\n", "module_stdout": "sudo: требуется указать пароль\r\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1, "warnings": ["Platform linux on host 10.0.2.15 is using the discovered Python interpreter at /usr/bin/python2.7, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information."]}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}

PLAY RECAP *** 10.0.2.15 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

citrullux commented 3 months ago

По поводу шага 6, можно внешний вид файла playbook_init.yml?

ZaitcAA commented 3 months ago

Снимок экрана 2024-06-11 154346