Skip to content

add more verification tests #11

@github-actions

Description

@github-actions

add more tests here

# TODO add more tests here

---

# TODO add more tests here

- name: Verify
  hosts: all
  vars:
    role_path: ../../
  vars_files:
    - "{{ role_path }}/defaults/main.yml"
    - converge-vars.yml
  pre_tasks:
    - import_tasks: "{{ role_path }}/tasks/variables.yml"
  tasks:
    - name: Check http monitoring is on
      wait_for:
        port: 5067
      when: beats_flavor != 'winlogbeat'

    - name: Check filebeat modules are enabled
      stat:
        path: "{{ beats_filebeat_modules_dir }}/{{ _beats__filebeat_module }}.yml"
      loop: "{{ beats_filebeat_modules }}"
      loop_control:
        loop_var: _beats__filebeat_module
      when: beats_flavor == 'filebeat'
      register: _result
      failed_when: not _result.stat.exists | bool

53917ab22606242e51792b8d3a522b6fd446d301

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions