Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

add simple preflight checks #35

Merged
merged 1 commit into from
Jun 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tasks/preflight.yml
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
---
- name: Assert usage of systemd as an init system
assert:
that: ansible_service_mgr == 'systemd'
msg: "This role only works with systemd"

- name: Naive assertion of proper listen address
assert:
that:
- "':' in blackbox_exporter_web_listen_address"