add promtail role
This commit is contained in:
19
roles/promtail/molecule/default/verify.yml
Normal file
19
roles/promtail/molecule/default/verify.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Verify
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# https://github.com/ansible/molecule/issues/3587#issuecomment-1158650179
|
||||
- name: "Include default vars"
|
||||
ansible.builtin.include_vars:
|
||||
dir: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/defaults/"
|
||||
extensions: [ 'yml' ]
|
||||
|
||||
- name: "Sanity check the Promtail daemon"
|
||||
retries: 3
|
||||
delay: 1
|
||||
register: this
|
||||
failed_when: "this.content != 'Ready'"
|
||||
ansible.builtin.uri:
|
||||
url: "http://localhost:{{ promtail_http_port }}/ready"
|
||||
return_content: true
|
||||
Reference in New Issue
Block a user