diff --git a/ansible/roles/dashmate/templates/dashmate.json.j2 b/ansible/roles/dashmate/templates/dashmate.json.j2 index a9a20b63..949a40da 100644 --- a/ansible/roles/dashmate/templates/dashmate.json.j2 +++ b/ansible/roles/dashmate/templates/dashmate.json.j2 @@ -119,7 +119,6 @@ "miner": { "enable": false, "interval": "2.5m", - "mediantime": null, "address": null }, "devnet": { diff --git a/ansible/roles/insight/tasks/main.yml b/ansible/roles/insight/tasks/main.yml index bdcbb87b..312b210c 100644 --- a/ansible/roles/insight/tasks/main.yml +++ b/ansible/roles/insight/tasks/main.yml @@ -27,8 +27,16 @@ - name: Check Insight container ansible.builtin.assert: - that: 'output.services.insight.insight.state.running' + that: + - output.containers is defined + - (output.containers | selectattr('Service', '==', 'insight') | list) | length > 0 + - (output.containers | selectattr('Service', '==', 'insight') | list)[0].State == 'running' + fail_msg: "No 'insight' container found or it isn't running." - name: Check Insight Proxy container ansible.builtin.assert: - that: 'output.services.insight_proxy.insight_proxy.state.running' + that: + - output.containers is defined + - (output.containers | selectattr('Service', '==', 'insight_proxy') | list) | length > 0 + - (output.containers | selectattr('Service', '==', 'insight_proxy') | list)[0].State == 'running' + fail_msg: "No 'insight proxy' container found or it isn't running."