Why removing this file resource?

You seems to use it in each if condition.

You cna remove "file" from "converge_by" without problem I think.