mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #6287 from yousong/bugfix/yousong-lb-undeploy
region: lbagent: undeploy: make it idempotent
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user