Set prev_state in the state functions
Set prev_state in the state functions

This seems a little like duplicating code since all of the called
functions need it but prev_state isn't part of argument parsing so it
doesn't belong in the toplevel main() function.

thaim/ansible,thaim/ansible