-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
206 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ | |
pi_for_engineers: 3 | ||
|
||
- id: "testcase #11" | ||
stark_motto: | | ||
stark_motto: |- | ||
Winter | ||
is | ||
coming | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
- name: 72 set fact with type | ||
hosts: all | ||
sources: | ||
- generic: | ||
shutdown_after: 1 | ||
payload: | ||
- action: "go" | ||
rules: | ||
- name: r1 | ||
condition: event.action == "go" | ||
action: | ||
set_fact: | ||
fact: | ||
var_bool: "{{ my_bool }}" | ||
var_int: "{{ my_int }}" | ||
var_float: "{{ my_float }}" | ||
literal_int: 5 | ||
string_int: "5" | ||
|
||
- name: Match the bool | ||
condition: event.var_bool | ||
action: | ||
debug: | ||
msg: "The var bool matches" | ||
|
||
- name: Match the int | ||
condition: event.var_int == 2 | ||
action: | ||
debug: | ||
msg: "The var int matches" | ||
|
||
- name: Match the float | ||
condition: event.var_float == 3.123 | ||
action: | ||
debug: | ||
msg: "The var int matches" | ||
|
||
- name: Match the literal int | ||
condition: event.literal_int == 5 | ||
action: | ||
debug: | ||
msg: "The literal int matches" | ||
- name: Match the string int | ||
condition: event.string_int == "5" | ||
action: | ||
debug: | ||
msg: "The string int matches" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Rules with names being substituted | ||
hosts: localhost | ||
sources: | ||
- range: | ||
limit: 5 | ||
rules: | ||
- name: "{{ custom.name1 }}" | ||
condition: event.i == 1 | ||
action: | ||
debug: | ||
- name: "{{ custom.name2 }}" | ||
condition: event.i == 2 | ||
action: | ||
debug: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters