{"id":4323,"sha1":"7e6c1625ee97dd5eec10a59bc2d3f532a8a2da38","playbook":{"id":2247,"items":{"plays":0,"tasks":0,"results":0,"hosts":0,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"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/hosts_CTListFromObasDB"],"listhosts":false,"subset":"charitywebsites.uk.easy-server.com","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":["kuly/check-dns.yaml"]},"labels":[],"started":"2024-11-27T13:46:46.589713Z","ended":"2024-11-27T13:46:46.651573Z","duration":"00:00:00.061860","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"expired","path":"/home/ssh-gateway/ansible/kuly/check-dns.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check if ttl is zero\n  hosts: all\n  tasks:\n    - name: Check via plesk\n      ansible.builtin.shell: |\n        set -o pipefail\n        plesk db -e \"select * from dns_recs where ttl=0;\"\n      args:\n        executable: /bin/bash\n      changed_when: false\n      register: plesk_out\n        #    - name: Save hostname if stdout is not empty\n        #      when: plesk_out.stdout | length > 0\n        #      ansible.builtin.lineinfile:\n        #        path: \"/home/ssh-gateway/ansible/check-dns-hosts-updated.txt\"\n        #        line: \"{{ inventory_hostname }}\"\n        #        create: true\n        #        mode: '0644'\n        #      delegate_to: 127.0.0.1\n","created":"2024-11-27T13:46:46.609072Z","updated":"2024-11-27T13:46:46.609096Z","path":"/home/ssh-gateway/ansible/kuly/check-dns.yaml"}