Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Allow multiple handlers in notify
Browse files Browse the repository at this point in the history
Allow multiple handlers in notify because notify parameter could contain
an array of handlers according to Ansible documentation.
  • Loading branch information
Hexta committed Mar 28, 2022
1 parent 592ec90 commit 690ff10
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
12 changes: 11 additions & 1 deletion f/ansible-playbook.json
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,17 @@
},
"notify": {
"title": "Notify",
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"poll": {
"title": "Poll",
Expand Down
12 changes: 11 additions & 1 deletion f/ansible-tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,17 @@
},
"notify": {
"title": "Notify",
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"poll": {
"title": "Poll",
Expand Down
12 changes: 12 additions & 0 deletions test/playbooks/tasks/notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: notify single handler
ansible.builtin.debug:
msg: task with single handler
notify:
- handler1

- name: notify multiple handlers
ansible.builtin.debug:
msg: task with multiple handlers
notify:
- handler1
- handler2

0 comments on commit 690ff10

Please sign in to comment.