The existing lineinfile implementation is buggy when changing and removing
entries from the global_environment_variables dict
Significant refactoring of the role tests was necessary in order
to get usable testing on the change as well as to resolve a few
problems with the previous implementation of the role testing.
Partial-Bug: #1573131
Change-Id: I401763d277d179249973545e873796f9dd54049b