ansible galaxy doesnt have anything like what i am asking for. but thanks for the replyYou can use a role from Ansible-Galaxy, that way you won't have to write it yourself.
Ansible Galaxy
Jump start your automation project with great content from the Ansible communitygalaxy.ansible.com