{"id":108243,"status":"changed","playbook":{"id":1530,"items":{"plays":1,"tasks":1,"results":134,"hosts":134,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"inventory":["/home/ssh-gateway/ansible/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":null,"poll_interval":15,"seconds":0,"one_line":false,"tree":null,"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,"check":false,"diff":false,"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,"basedir":null,"task_timeout":0,"module_args":"cat /etc/logrotate.d/mysql","module_name":"shell","args":"all"},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"}],"started":"2024-09-06T06:47:53.269520+01:00","ended":"2024-09-06T06:48:27.337799+01:00","duration":"00:00:34.068279","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"failed","path":"Ad-Hoc: shell: cat /etc/logrotate.d/mysql","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":1529,"items":{"tasks":1,"results":134},"started":"2024-09-06T06:47:53.370860+01:00","ended":"2024-09-06T06:48:20.699391+01:00","duration":"00:00:27.328531","name":"Ansible Ad-Hoc","status":"completed"},"task":{"id":2780,"items":{"results":134},"path":"Ad-Hoc: shell: cat /etc/logrotate.d/mysql","tags":[],"started":"2024-09-06T06:47:53.659850+01:00","ended":"2024-09-06T06:48:20.689376+01:00","duration":"00:00:27.029526","name":"shell","uuid":"001851d0-75dc-404c-8f7a-00000000008a","action":"shell","lineno":1,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":2253},"host":{"id":49402,"name":"strong-cloud.man-1.vm.plesk-server.com","changed":1,"failed":0,"ok":1,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"ansible_facts":{"discovered_interpreter_python":"/usr/libexec/platform-python"},"changed":true,"cmd":"cat /etc/logrotate.d/mysql","delta":"0:00:00.004710","end":"2024-09-06 06:47:55.539670","invocation":{"module_args":{"_raw_params":"cat /etc/logrotate.d/mysql","_uses_shell":true,"argv":null,"chdir":null,"creates":null,"executable":null,"expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"","rc":0,"start":"2024-09-06 06:47:55.534960","stderr":"","stderr_lines":[],"stdout":"# This logname can be set in /etc/my.cnf\n# by setting the variable \"log-error\"\n# in the [mysqld] section as follows:\n#\n# [mysqld]\n# log-error=/var/lib/mysql/mysqld.log\n#\n# If the root user has a password you have to create a\n# /root/.my.cnf configuration file with the following\n# content:\n#\n# [mysqladmin]\n# password = <secret> \n# user= root\n#\n# where \"<secret>\" is the password. \n#\n# ATTENTION: This /root/.my.cnf should be readable ONLY\n# for root !\n\n/var/lib/mysql/mysqld.log {\n        # create 600 mysql mysql\n        su mysql mysql\n        notifempty\n        daily\n        rotate 3\n        missingok\n        compress\n    postrotate\n\t# just if mariadbd is really running\n\tif test -x /usr/bin/mysqladmin && \\\n\t   /usr/bin/mysqladmin ping &>/dev/null\n\tthen\n\t   /usr/bin/mysqladmin --local flush-error-log \\\n              flush-engine-log flush-general-log flush-slow-log\n\tfi\n    endscript\n}","stdout_lines":["# This logname can be set in /etc/my.cnf","# by setting the variable \"log-error\"","# in the [mysqld] section as follows:","#","# [mysqld]","# log-error=/var/lib/mysql/mysqld.log","#","# If the root user has a password you have to create a","# /root/.my.cnf configuration file with the following","# content:","#","# [mysqladmin]","# password = <secret> ","# user= root","#","# where \"<secret>\" is the password. ","#","# ATTENTION: This /root/.my.cnf should be readable ONLY","# for root !","","/var/lib/mysql/mysqld.log {","        # create 600 mysql mysql","        su mysql mysql","        notifempty","        daily","        rotate 3","        missingok","        compress","    postrotate","\t# just if mariadbd is really running","\tif test -x /usr/bin/mysqladmin && \\","\t   /usr/bin/mysqladmin ping &>/dev/null","\tthen","\t   /usr/bin/mysqladmin --local flush-error-log \\","              flush-engine-log flush-general-log flush-slow-log","\tfi","    endscript","}"]},"created":"2024-09-06T06:48:11.460151+01:00","updated":"2024-09-06T06:48:11.460175+01:00","started":"2024-09-06T06:47:54.601510+01:00","ended":"2024-09-06T06:48:11.404833+01:00","duration":"00:00:16.803323","changed":true,"ignore_errors":false}