[DM] Fixed invalid playbook being created when there were multiple plays. Multiple plays are now written as a YAML list.