diff --git a/molecule/offline/verify.yml b/molecule/offline/verify.yml index 8fba346..bbe8381 100644 --- a/molecule/offline/verify.yml +++ b/molecule/offline/verify.yml @@ -14,7 +14,7 @@ - name: Verify service run status ansible.builtin.fail: msg: "Mongos service is running" - when: services[_service].state != "inactive" + when: services[_service].state not in ["inactive", "stopped"] - name: Verify service boot status ansible.builtin.fail: diff --git a/molecule/stop/verify.yml b/molecule/stop/verify.yml index 5bdbb8d..8f5f9cb 100644 --- a/molecule/stop/verify.yml +++ b/molecule/stop/verify.yml @@ -14,7 +14,7 @@ - name: Verify service run status ansible.builtin.fail: msg: "Mongos service is running" - when: services[_service].state != "inactive" + when: services[_service].state not in ["inactive", "stopped"] - name: Verify service boot status ansible.builtin.fail: @@ -36,7 +36,7 @@ - name: Verify service run status ansible.builtin.fail: msg: "MongoDB service is running" - when: services[_service].state != "inactive" + when: services[_service].state not in ["inactive", "stopped"] - name: Verify service boot status ansible.builtin.fail: