Merge pull request #6287 from yousong/bugfix/yousong-lb-undeploy

region: lbagent: undeploy: make it idempotent
This commit is contained in:
Zexi Li
2020-05-12 11:49:54 +08:00
committed by GitHub
@@ -216,12 +216,9 @@ func (lbagent *SLoadbalancerAgent) undeploy(ctx context.Context, userCred mcclie
},
Modules: []ansible.Module{
{
Name: "systemd",
Name: "shell",
Args: []string{
"name=yunion-lbagent",
"enabled=no",
"state=stopped",
"daemon_reload=yes",
"systemctl disable --now yunion-lbagent; true",
},
},
{