Add missing params to get_target_from_rule
Add missing params to get_target_from_rule

get_target_from_rule was extracted from main() without enough parameters for
all the local variables it took with it from the extraction site.

thaim/ansible,thaim/ansible