{"id":5896,"sha1":"e5bb868f4b3e827611e06046ab476ccd1ea88866","playbook":{"id":3776,"items":{"plays":1,"tasks":2,"results":2,"hosts":1,"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/kuly/bash-kvm-inventory-dev.sh"],"listhosts":false,"subset":"great-wren.man-1.solus.stage.town","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":["zz-needs-restarting.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":227,"name":"subset:great-wren.man-1.solus.stage.town"}],"started":"2025-09-15T16:24:27.401939+01:00","ended":"2025-09-15T16:24:29.358998+01:00","duration":"00:00:01.957059","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/zz-needs-restarting.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check if servers need restarting using custom module\n  hosts: all\n  gather_facts: false\n\n  tasks:\n    - name: Check if system needs restarting\n      needs_restarting_check:\n      register: restart_status\n\n    - name: Display restart status\n      ansible.builtin.debug:\n        msg: |\n          {% if restart_status.needs_restarting %}\n          \u26a0\ufe0f  Server REQUIRES a restart\n          {% else %}\n          \u2705 Server does NOT need a restart\n          {% endif %}\n      changed_when: restart_status.needs_restarting\n","created":"2025-09-15T16:24:27.433394+01:00","updated":"2025-09-15T16:24:27.433413+01:00","path":"/home/ssh-gateway/ansible/kuly/zz-needs-restarting.yaml"}