--- - name: BN Restful API GET request hosts: localhost gather_facts: no tasks: - name: Get local DNS uri: url: https://10.122.20.20:8443/sbc/application/common/localdns method: GET user: Your_User_Name password: Your_Password headers: Accept: application/json validate_certs: false status_code: 200 return_content: yes register: dns_get_response - name: Print ACL status debug: var: dns_get_response.content