ansible-vector-role/molecule/default/verify.yml
2022-01-15 18:25:03 +01:00

21 lines
516 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Execute vector
command: vector --version
changed_when: false
register: vector_version_rc
- name: Check grok pattern is not mangled
lineinfile:
path: /etc/vector/vector.toml
line: ' pattern = "(?<capture>\\d+)%{GREEDYDATA}"'
diff: true
register: grok_pattern_rc
- name: Assert vector is installed
assert:
that:
- vector_version_rc is success
- grok_pattern_rc is not changed