ansible-playbook [core 2.16.11] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-wR5 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: process_python_modules_packages.yml ********************************** 1 plays in process_python_modules_packages.yml PLAY [Get python modules from log file and create packages file] *************** TASK [Get list of modules] ***************************************************** task path: /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:9 Tuesday 24 September 2024 15:16:06 -0400 (0:00:00.032) 0:00:00.032 ***** ok: [managed-node3 -> localhost] => { "ansible_facts": { "modules": [ "/usr/lib64/python3.6/ctypes/_endian.py", "/usr/lib64/python3.6/shutil.py", "/usr/lib64/python3.6/shlex.py", "/usr/lib64/python3.6/io.py", "/usr/lib64/python3.6/copyreg.py", "/usr/lib64/python3.6/warnings.py", "/usr/lib64/python3.6/argparse.py", "/usr/lib64/python3.6/_compression.py", "/usr/lib64/python3.6/site.py", "/usr/lib64/python3.6/sre_constants.py", "/usr/lib64/python3.6/keyword.py", "/usr/lib64/python3.6/uuid.py", "/usr/lib64/python3.6/encodings/cp437.py", "/usr/lib64/python3.6/importlib/machinery.py", "/usr/lib64/python3.6/logging/__init__.py", "/usr/lib64/python3.6/tokenize.py", "/usr/lib64/python3.6/json/scanner.py", "/usr/lib64/python3.6/socket.py", "/usr/lib64/python3.6/pkgutil.py", "/usr/lib64/python3.6/fnmatch.py", "/usr/lib64/python3.6/datetime.py", "/usr/lib64/python3.6/types.py", "/usr/lib64/python3.6/json/decoder.py", "/usr/lib64/python3.6/signal.py", "/usr/lib64/python3.6/platform.py", "/usr/lib64/python3.6/reprlib.py", "/usr/lib64/python3.6/enum.py", "/usr/lib64/python3.6/importlib/util.py", "/usr/lib64/python3.6/site-packages/selinux/__init__.py", "/usr/lib64/python3.6/sre_compile.py", "/usr/lib64/python3.6/ctypes/util.py", "/usr/lib64/python3.6/textwrap.py", "/usr/lib64/python3.6/encodings/__init__.py", "/usr/lib64/python3.6/traceback.py", "/usr/lib64/python3.6/site-packages/systemd/journal.py", "/usr/lib64/python3.6/threading.py", "/usr/lib64/python3.6/site-packages/systemd/daemon.py", "/usr/lib64/python3.6/codecs.py", "/usr/lib64/python3.6/heapq.py", "/usr/lib64/python3.6/hashlib.py", "/usr/lib64/python3.6/subprocess.py", "/usr/lib64/python3.6/struct.py", "/usr/lib64/python3.6/ctypes/__init__.py", "/usr/lib64/python3.6/gettext.py", "/usr/lib64/python3.6/operator.py", "/usr/lib64/python3.6/json/__init__.py", "/usr/lib64/python3.6/collections/abc.py", "/usr/lib64/python3.6/runpy.py", "/usr/lib64/python3.6/encodings/utf_8.py", "/usr/lib64/python3.6/tempfile.py", "/usr/lib64/python3.6/weakref.py", "/usr/lib64/python3.6/abc.py", "/usr/lib64/python3.6/re.py", "/usr/lib64/python3.6/selectors.py", "/usr/lib64/python3.6/encodings/aliases.py", "/usr/lib64/python3.6/linecache.py", "/usr/lib64/python3.6/encodings/latin_1.py", "/usr/lib64/python3.6/__future__.py", "/usr/lib64/python3.6/site-packages/systemd/__init__.py", "/usr/lib64/python3.6/copy.py", "/usr/lib64/python3.6/ast.py", "/usr/lib64/python3.6/json/encoder.py", "/usr/lib64/python3.6/functools.py", "/usr/lib64/python3.6/token.py", "/usr/lib64/python3.6/string.py", "/usr/lib64/python3.6/bz2.py", "/usr/lib64/python3.6/base64.py", "/usr/lib64/python3.6/locale.py", "/usr/lib64/python3.6/bisect.py", "/usr/lib64/python3.6/random.py", "/usr/lib64/python3.6/importlib/abc.py", "/usr/lib64/python3.6/sre_parse.py", "/usr/lib64/python3.6/importlib/__init__.py", "/usr/lib64/python3.6/lzma.py", "/usr/lib64/python3.6/zipfile.py", "/usr/lib64/python3.6/_weakrefset.py", "/usr/lib64/python3.6/collections/__init__.py" ] }, "changed": false } TASK [Copy modules file to host] *********************************************** task path: /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:18 Tuesday 24 September 2024 15:16:06 -0400 (0:00:00.113) 0:00:00.146 ***** changed: [managed-node3] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "checksum": "62298239503c996b851556a446fe6f08fc9678be", "dest": "/tmp/modules.txt", "gid": 0, "group": "root", "md5sum": "5a6046aead63aa9180e0440385028836", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 2694, "src": "/root/.ansible/tmp/ansible-tmp-1727205366.4241524-10477-155233049364153/source", "state": "file", "uid": 0 } TASK [Get unique list of packages that provide modules in modules.txt] ********* task path: /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:26 Tuesday 24 September 2024 15:16:07 -0400 (0:00:01.222) 0:00:01.368 ***** ok: [managed-node3] => { "changed": false, "cmd": "declare -A packages\nwhile read -r file; do\n if [ -z \"$file\" ]; then\n continue # probably extra trailing newline\n elif pkg=\"$(rpm -qf \"$file\" --queryformat '%{name}-%{version}-%{release}\\n')\"; then\n packages[\"$pkg\"]=\"$pkg\"\n else\n echo \"ERROR: file $file does not belong to any package\"\n fi\ndone < /tmp/modules.txt\nfor pkg in \"${packages[@]}\"; do\n echo \"$pkg\"\ndone | sort > /tmp/packages.txt\n", "delta": "0:00:01.056941", "end": "2024-09-24 15:16:09.114011", "rc": 0, "start": "2024-09-24 15:16:08.057070" } TASK [Copy packages file back to localhost] ************************************ task path: /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:43 Tuesday 24 September 2024 15:16:09 -0400 (0:00:01.611) 0:00:02.980 ***** changed: [managed-node3] => { "changed": true, "checksum": "de9e97668d3c166293061dc453abd6e881b5e3ec", "dest": "/var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/tests_insights_remediation-ANSIBLE-2.16-general-SUCCESS.log.packages", "md5sum": "a6877ab8cde182e9e10c851c0dc054e1", "remote_checksum": "de9e97668d3c166293061dc453abd6e881b5e3ec", "remote_md5sum": null } PLAY RECAP ********************************************************************* managed-node3 : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 24 September 2024 15:16:09 -0400 (0:00:00.502) 0:00:03.482 ***** =============================================================================== Get unique list of packages that provide modules in modules.txt --------- 1.61s /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:26 Copy modules file to host ----------------------------------------------- 1.22s /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:18 Copy packages file back to localhost ------------------------------------ 0.50s /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:43 Get list of modules ----------------------------------------------------- 0.11s /var/ARTIFACTS/work-generalwa1gmykn/plans/general/discover/Run-test-playbooks-from-control_node/tests/tests/general/process_python_modules_packages.yml:9