{"id":320,"sha1":"57e227a1bc2d7084b0979e97c24ddd1754eb9321","playbook":{"id":320,"items":{"plays":1,"tasks":2,"results":2,"hosts":2,"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":"zoltan.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":["ipv6-check.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":36,"name":"subset:zoltan.uk.easy-server.com"}],"started":"2024-05-13T11:10:42.830939+01:00","ended":"2024-05-13T11:10:44.828773+01:00","duration":"00:00:01.997834","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.2.dev2","status":"completed","path":"/home/ssh-gateway/ansible/ipv6-check.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to check the server for ipv6\n  hosts: all\n  gather_facts: true\n  vars:\n    folder: /home/ssh-gateway/ansible/playbook_output\n  tasks:\n    - name: Check if host has IPv6\n      ansible.builtin.command: ip -6 addr show scope global\n      register: ipv6_check\n    - name: Write hostname to file\n      ansible.builtin.lineinfile:\n        dest: \"{{ folder }}/ipv6-servers.txt\"\n        line: \"{{ ansible_facts.nodename }}\"\n        create: true\n        mode: '0644'\n      delegate_to: 127.0.0.1\n      when: ipv6_check.rc == 0 and ipv6_check.stdout is defined\n","created":"2024-05-13T11:10:42.852184+01:00","updated":"2024-05-13T11:10:42.852213+01:00","path":"/home/ssh-gateway/ansible/ipv6-check.yaml"}