QingCloudAppcenter / ansible-roles

Reusable Ansible roles.
Apache License 2.0
1 stars 8 forks source link

appctl-1.0.7: fix revive issue #16

Closed hlwanghl closed 4 years ago

hlwanghl commented 4 years ago

Sometimes, the previous execute function behaves unexpectedly:

revive() { execute checkSvc $svc || execute restart $svc }

This may caused by multiple chained execute like:

funcA() { execute funcB || execute funcC }

execute funcA

So we removed execute and use stupid declared functions to reduce complexity.