ubuntu/gnome desktop settings

Is there a way ansible can manage gnome desktop settings? i use gsettings from a command line, but that requires gnome to already be running. id like to set these things while the vm is being setup.