Remove the if: With it, the module fails when $ensure == 'absent'.
Moreover, as execs have refreshonly enabled, the if is unneceissary