When running a playbook, it\'s easy enough to get all ip addresses with ansible_all_ipv4_addresses , later in the hostvars it\'s also easy to find the netmask a
ansible_all_ipv4_addresses