making cloud-init check a pre_task