{"id":4291,"sha1":"a10c7a7bd7f5227eed7192458c8442e06589f776","playbook":{"id":2215,"items":{"plays":1,"tasks":1,"results":1,"hosts":1,"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":"ynh8.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":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":143,"name":"subset:ynh8.uk.easy-server.com"}],"started":"2024-11-27T13:45:11.040262Z","ended":"2024-11-27T13:45:12.284573Z","duration":"00:00:01.244311","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"completed","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 \"update dns_recs set ttl=DEFAULT(ttl)  where ttl=0 and type='NS';\"\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:45:11.061265Z","updated":"2024-11-27T13:45:11.061285Z","path":"/home/ssh-gateway/ansible/kuly/check-dns.yaml"}