expanded command module to handle rc_{ok,changed,failed}