An example of Custom Ansible Module My Custom Ansible module to find the response code from a website. For example I have shown my website's responce code (200) Response codes 1xx Informational. 2xx Success. 3xx Redirection. 4xx Client Error. 5xx Server Error. NOTE: If you want to check the response code of any website, you need to change the url variable to your destination website Proof: https://asciinema.org/a/pOeLLvMC7aNhqY1tWopQL8tq3