{"id":921982,"status":"changed","playbook":{"id":5306,"items":{"plays":1,"tasks":3,"results":390,"hosts":131,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/ansible-luca/ioncube_inventory"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["ioncube-fixer.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2026-03-04T10:56:39.907356Z","ended":"2026-03-04T10:59:31.491542Z","duration":"00:02:51.584186","name":null,"ansible_version":"2.16.13","client_version":"1.7.4","python_version":"3.10.10","server_version":"1.7.4","status":"completed","path":"/home/ssh-gateway/ansible/ansible-luca/ioncube-fixer.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":5840,"items":{"tasks":3,"results":390},"started":"2026-03-04T10:56:40.063746Z","ended":"2026-03-04T10:59:25.128539Z","duration":"00:02:45.064793","name":"RM10252 - PHP EOL Checker","status":"completed"},"task":{"id":13020,"items":{"results":130},"path":"/home/ssh-gateway/ansible/ansible-luca/ioncube-fixer.yaml","tags":[],"started":"2026-03-04T10:57:09.583576Z","ended":"2026-03-04T10:59:24.927569Z","duration":"00:02:15.343993","name":"Fixing poorly loaded ioncube Zend module","uuid":"001851d0-75dc-43a2-ab8f-000000000086","action":"ansible.builtin.shell","lineno":11,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":7464},"host":{"id":318756,"name":"gold-walrus.man-1.vm.plesk-server.com","changed":1,"failed":0,"ok":2,"skipped":1,"unreachable":0},"delegated_to":[],"content":{"changed":true,"cmd":"set -o pipefail\npaths=$(find /opt/alt/php* -name \"default.ini\" | xargs grep -l \"^zend_extension=.*ioncube_loader_lin.*\" 2>/dev/null)\n\nif [[ -n \"$paths\" ]]; then\n  package_names=$(echo \"$paths\" | awk -F'/' '{ print $3 \"-\" $4 \"-ioncube-loader\" }' )\n\n  while IFS= read -r path <&3 && IFS= read -r package <&4; do\n\n    if [[ \"$package\" == *\"alt-php\"* && \"$path\" == \"/opt/alt/php\"* ]]; then\n      echo \"[ INFO ] Installing package: $package\"\n      \n      if [[ ! -f \"$healthy_ioncube\" ]]; then\n        dnf install -y --disableexcludes=all \"$package\"\n      fi\n      rc=$?\n\n      if [ \"$rc\" == 0 ]; then\n        echo \"[ INFO ] Removing the ioncube_loader_lin.so module from $path!\"\n        sed -i '/zend_extension=\\/opt\\/alt\\/php.*\\/ioncube_loader_lin_.*\\.so/d' \"$path\"\n\n        php_bin=$(echo $path | sed 's|/etc/php.d/default.ini|/usr/bin/php|')\n        ioncube_ini=$(echo $path | sed 's|/php.d/default.ini|/php.d.all/ioncube_loader.ini|')\n        dest_path=$(echo $path | sed 's|default.ini|10-ioncube_loader.ini|')\n\n        ln -s \"$ioncube_ini\" \"$dest_path\"\n\n        if ! \"$php_bin\" -i |  grep -wE \"ionCube.*v1[4-5]\"; then\n          echo \"[ ERROR ] Ioncube wasn't enabled successfully!\"\n          exit 128\n        else\n          echo \"[ INFO ] Ioncube was enabled successfully!\"\n        fi\n\n      else\n        echo \"[ ERROR ] Failed to install $package. Stopping script!\"\n        exit 128\n      fi\n\n    else\n      echo \"[ ERROR ] Something went wrong: $path $package\"\n      exit 128\n    fi\n\n  done 3<<< \"$paths\" 4<<< \"$package_names\"\n  find /opt/alt/php* -name \"ioncube_loader_lin*.so\" -type f -delete\n\nelse\n  echo \"[ INFO ] ioncube_loader_lin.so file wasn't found!\"\nfi\n","delta":"0:00:32.208030","end":"2026-03-04 10:58:24.725878","failed_when_result":false,"invocation":{"module_args":{"_raw_params":"set -o pipefail\npaths=$(find /opt/alt/php* -name \"default.ini\" | xargs grep -l \"^zend_extension=.*ioncube_loader_lin.*\" 2>/dev/null)\n\nif [[ -n \"$paths\" ]]; then\n  package_names=$(echo \"$paths\" | awk -F'/' '{ print $3 \"-\" $4 \"-ioncube-loader\" }' )\n\n  while IFS= read -r path <&3 && IFS= read -r package <&4; do\n\n    if [[ \"$package\" == *\"alt-php\"* && \"$path\" == \"/opt/alt/php\"* ]]; then\n      echo \"[ INFO ] Installing package: $package\"\n      \n      if [[ ! -f \"$healthy_ioncube\" ]]; then\n        dnf install -y --disableexcludes=all \"$package\"\n      fi\n      rc=$?\n\n      if [ \"$rc\" == 0 ]; then\n        echo \"[ INFO ] Removing the ioncube_loader_lin.so module from $path!\"\n        sed -i '/zend_extension=\\/opt\\/alt\\/php.*\\/ioncube_loader_lin_.*\\.so/d' \"$path\"\n\n        php_bin=$(echo $path | sed 's|/etc/php.d/default.ini|/usr/bin/php|')\n        ioncube_ini=$(echo $path | sed 's|/php.d/default.ini|/php.d.all/ioncube_loader.ini|')\n        dest_path=$(echo $path | sed 's|default.ini|10-ioncube_loader.ini|')\n\n        ln -s \"$ioncube_ini\" \"$dest_path\"\n\n        if ! \"$php_bin\" -i |  grep -wE \"ionCube.*v1[4-5]\"; then\n          echo \"[ ERROR ] Ioncube wasn't enabled successfully!\"\n          exit 128\n        else\n          echo \"[ INFO ] Ioncube was enabled successfully!\"\n        fi\n\n      else\n        echo \"[ ERROR ] Failed to install $package. Stopping script!\"\n        exit 128\n      fi\n\n    else\n      echo \"[ ERROR ] Something went wrong: $path $package\"\n      exit 128\n    fi\n\n  done 3<<< \"$paths\" 4<<< \"$package_names\"\n  find /opt/alt/php* -name \"ioncube_loader_lin*.so\" -type f -delete\n\nelse\n  echo \"[ INFO ] ioncube_loader_lin.so file wasn't found!\"\nfi\n","_uses_shell":true,"argv":null,"chdir":null,"creates":null,"executable":"/bin/bash","expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"","rc":0,"start":"2026-03-04 10:57:52.517848","stderr":"PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0\nPHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0\nPHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0","stderr_lines":["PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0","PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0","PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in Unknown on line 0"],"stdout":"[ INFO ] Installing package: alt-php53-ioncube-loader\nLast metadata expiration check: 0:56:42 ago on Wed 04 Mar 2026 10:01:19 AM UTC.\nPackage alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64 is already installed.\nDependencies resolved.\n================================================================================\n Package                   Arch    Version            Repository           Size\n================================================================================\nUpgrading:\n alt-php53-ioncube-loader  x86_64  1:15.0.0-1.el8     imunify360-alt-php  437 k\n\nTransaction Summary\n================================================================================\nUpgrade  1 Package\n\nTotal download size: 437 k\nDownloading Packages:\nalt-php53-ioncube-loader-15.0.0-1.el8.x86_64.rp 1.1 MB/s | 437 kB     00:00    \n--------------------------------------------------------------------------------\nTotal                                           1.1 MB/s | 437 kB     00:00     \nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                        1/1 \n  Upgrading        : alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64         1/2 \n  Cleanup          : alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64         2/2 \n  Verifying        : alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64         1/2 \n  Verifying        : alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64         2/2 \n\nUpgraded:\n  alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64                                \n\nComplete!\n[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php53/etc/php.d/default.ini!\n    with the ionCube PHP Loader v15.0.0, Copyright (c) 2002-2025, by ionCube Ltd.\n[ INFO ] Ioncube was enabled successfully!\n[ INFO ] Installing package: alt-php54-ioncube-loader\nLast metadata expiration check: 0:56:57 ago on Wed 04 Mar 2026 10:01:19 AM UTC.\nPackage alt-php54-ioncube-loader-14.4.1-1.el8.x86_64 is already installed.\nDependencies resolved.\n================================================================================\n Package                    Arch     Version         Repository            Size\n================================================================================\nUpgrading:\n alt-php54-ioncube-loader   x86_64   15.0.0-1.el8    imunify360-alt-php   561 k\n\nTransaction Summary\n================================================================================\nUpgrade  1 Package\n\nTotal download size: 561 k\nDownloading Packages:\nalt-php54-ioncube-loader-15.0.0-1.el8.x86_64.rp 1.4 MB/s | 561 kB     00:00    \n--------------------------------------------------------------------------------\nTotal                                           1.4 MB/s | 561 kB     00:00     \nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                        1/1 \n  Upgrading        : alt-php54-ioncube-loader-15.0.0-1.el8.x86_64           1/2 \n  Cleanup          : alt-php54-ioncube-loader-14.4.1-1.el8.x86_64           2/2 \n  Verifying        : alt-php54-ioncube-loader-15.0.0-1.el8.x86_64           1/2 \n  Verifying        : alt-php54-ioncube-loader-14.4.1-1.el8.x86_64           2/2 \n\nUpgraded:\n  alt-php54-ioncube-loader-15.0.0-1.el8.x86_64                                  \n\nComplete!\n[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php54/etc/php.d/default.ini!\n    with the ionCube PHP Loader + ionCube24 v15.0.0, Copyright (c) 2002-2025, by ionCube Ltd.\n[ INFO ] Ioncube was enabled successfully!","stdout_lines":["[ INFO ] Installing package: alt-php53-ioncube-loader","Last metadata expiration check: 0:56:42 ago on Wed 04 Mar 2026 10:01:19 AM UTC.","Package alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64 is already installed.","Dependencies resolved.","================================================================================"," Package                   Arch    Version            Repository           Size","================================================================================","Upgrading:"," alt-php53-ioncube-loader  x86_64  1:15.0.0-1.el8     imunify360-alt-php  437 k","","Transaction Summary","================================================================================","Upgrade  1 Package","","Total download size: 437 k","Downloading Packages:","alt-php53-ioncube-loader-15.0.0-1.el8.x86_64.rp 1.1 MB/s | 437 kB     00:00    ","--------------------------------------------------------------------------------","Total                                           1.1 MB/s | 437 kB     00:00     ","Running transaction check","Transaction check succeeded.","Running transaction test","Transaction test succeeded.","Running transaction","  Preparing        :                                                        1/1 ","  Upgrading        : alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64         1/2 ","  Cleanup          : alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64         2/2 ","  Verifying        : alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64         1/2 ","  Verifying        : alt-php53-ioncube-loader-1:14.4.1-1.el8.x86_64         2/2 ","","Upgraded:","  alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64                                ","","Complete!","[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php53/etc/php.d/default.ini!","    with the ionCube PHP Loader v15.0.0, Copyright (c) 2002-2025, by ionCube Ltd.","[ INFO ] Ioncube was enabled successfully!","[ INFO ] Installing package: alt-php54-ioncube-loader","Last metadata expiration check: 0:56:57 ago on Wed 04 Mar 2026 10:01:19 AM UTC.","Package alt-php54-ioncube-loader-14.4.1-1.el8.x86_64 is already installed.","Dependencies resolved.","================================================================================"," Package                    Arch     Version         Repository            Size","================================================================================","Upgrading:"," alt-php54-ioncube-loader   x86_64   15.0.0-1.el8    imunify360-alt-php   561 k","","Transaction Summary","================================================================================","Upgrade  1 Package","","Total download size: 561 k","Downloading Packages:","alt-php54-ioncube-loader-15.0.0-1.el8.x86_64.rp 1.4 MB/s | 561 kB     00:00    ","--------------------------------------------------------------------------------","Total                                           1.4 MB/s | 561 kB     00:00     ","Running transaction check","Transaction check succeeded.","Running transaction test","Transaction test succeeded.","Running transaction","  Preparing        :                                                        1/1 ","  Upgrading        : alt-php54-ioncube-loader-15.0.0-1.el8.x86_64           1/2 ","  Cleanup          : alt-php54-ioncube-loader-14.4.1-1.el8.x86_64           2/2 ","  Verifying        : alt-php54-ioncube-loader-15.0.0-1.el8.x86_64           1/2 ","  Verifying        : alt-php54-ioncube-loader-14.4.1-1.el8.x86_64           2/2 ","","Upgraded:","  alt-php54-ioncube-loader-15.0.0-1.el8.x86_64                                  ","","Complete!","[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php54/etc/php.d/default.ini!","    with the ionCube PHP Loader + ionCube24 v15.0.0, Copyright (c) 2002-2025, by ionCube Ltd.","[ INFO ] Ioncube was enabled successfully!"]},"created":"2026-03-04T10:58:26.043158Z","updated":"2026-03-04T10:58:26.043180Z","started":"2026-03-04T10:57:51.841471Z","ended":"2026-03-04T10:58:26.036799Z","duration":"00:00:34.195328","changed":true,"ignore_errors":false}