@haizhou there are better ways to handle idempotency, generally using the `notify` mechanisms Chef has. The items contained within each script may not be executed in the order they're written; i.e., this script is _not_ run procedurally.