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

Commit

Permalink
tags can be either string or list of strings (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusTeufelberger authored Apr 13, 2022
1 parent 3da010f commit 95d382a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 10 deletions.
17 changes: 12 additions & 5 deletions f/ansible-playbook.json
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,18 @@
"type": "boolean"
},
"tags": {
"items": {
"type": "string"
},
"title": "Tags",
"type": "array"
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "Tags"
},
"throttle": {
"title": "Throttle",
Expand Down
17 changes: 12 additions & 5 deletions f/ansible.json
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,18 @@
"type": "boolean"
},
"tags": {
"items": {
"type": "string"
},
"title": "Tags",
"type": "array"
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "Tags"
},
"throttle": {
"title": "Throttle",
Expand Down
2 changes: 2 additions & 0 deletions test/playbooks/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
FOO: bar
tags:
- foo
- role: bar
tags: string_tag
29 changes: 29 additions & 0 deletions test/playbooks/tasks/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- command: echo 123
tags:
- foo
- bar

- command: echo 123
tags: foo

- block:
- command: echo 123
tags:
- foo
- bar

- command: echo 123
tags: foo
tags:
- foo
- bar

- block:
- command: echo 123
tags:
- foo
- bar

- command: echo 123
tags: foo
tags: foo

0 comments on commit 95d382a

Please sign in to comment.