summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rulebook.yml
blob: 3eaf3089281d8a3f6596851f01281fbc3c8e8ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
# That file is not a valid playbook but it is a valid rulebook that was
# mistakenly put under a playbook directory.
- name: Demo rules with kafka as source
  hosts: localhost
  sources:
    - name: kafka
      kafka:
        topic: eda
        host: localhost
        port: 9092
        group_id: testing
  rules:
    - name:
      condition: event.i is defined
      action:
        debug:
    - name:
      condition: event.stop == true
      action:
        shutdown: