[Fixed] an idempotency issue in rpm installation template