{"id":914178,"status":"ok","playbook":{"id":5288,"items":{"plays":1,"tasks":3,"results":15,"hosts":6,"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-canary-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-03T20:11:27.715817Z","ended":"2026-03-03T20:12:02.503034Z","duration":"00:00:34.787217","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":5806,"items":{"tasks":3,"results":15},"started":"2026-03-03T20:11:27.861692Z","ended":"2026-03-03T20:12:02.208087Z","duration":"00:00:34.346395","name":"RM10252 - PHP EOL Checker","status":"completed"},"task":{"id":12942,"items":{"results":5},"path":"/home/ssh-gateway/ansible/ansible-luca/ioncube-fixer.yaml","tags":[],"started":"2026-03-03T20:11:30.867087Z","ended":"2026-03-03T20:12:01.869534Z","duration":"00:00:31.002447","name":"Fixing poorly loaded ioncube Zend module","uuid":"001851d0-75dc-2e10-b151-000000000009","action":"ansible.builtin.shell","lineno":11,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":7446},"host":{"id":315942,"name":"super-koala.man-1.vm.plesk-server.com","changed":0,"failed":0,"ok":3,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"set -o pipefail\npaths=$(find /opt/alt/php* -name \"default.ini\" | xargs grep -l \"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 dnf install -y \"$package\"; 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 -w \"ionCube24 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          exit 0\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:04.318408","end":"2026-03-03 20:11:35.735077","failed_when_result":false,"invocation":{"module_args":{"_raw_params":"set -o pipefail\npaths=$(find /opt/alt/php* -name \"default.ini\" | xargs grep -l \"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 dnf install -y \"$package\"; 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 -w \"ionCube24 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          exit 0\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":"non-zero return code","rc":128,"start":"2026-03-03 20:11:31.416669","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 'GMT/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 'GMT/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 'GMT/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 'GMT/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 'GMT/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 'GMT/0.0/no DST' instead in Unknown on line 0"],"stdout":"[ INFO ] Installing package: alt-php53-ioncube-loader\nLast metadata expiration check: 3:14:07 ago on Tue 03 Mar 2026 04:57:26 PM GMT.\nPackage alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64 is already installed.\nDependencies resolved.\nNothing to do.\nComplete!\n[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php53/etc/php.d/default.ini!\n[ ERROR ] Ioncube wasn't enabled successfully!","stdout_lines":["[ INFO ] Installing package: alt-php53-ioncube-loader","Last metadata expiration check: 3:14:07 ago on Tue 03 Mar 2026 04:57:26 PM GMT.","Package alt-php53-ioncube-loader-1:15.0.0-1.el8.x86_64 is already installed.","Dependencies resolved.","Nothing to do.","Complete!","[ INFO ] Removing the ioncube_loader_lin.so module from /opt/alt/php53/etc/php.d/default.ini!","[ ERROR ] Ioncube wasn't enabled successfully!"]},"created":"2026-03-03T20:11:35.772883Z","updated":"2026-03-03T20:11:35.772914Z","started":"2026-03-03T20:11:30.916214Z","ended":"2026-03-03T20:11:35.764599Z","duration":"00:00:04.848385","changed":false,"ignore_errors":false}