This file contains hidden or 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
| $ ansible-playbook playbook.yml | |
| PLAY [playbook] ************************************************************* | |
| GATHERING FACTS *************************************************************** | |
| ok: [hosts] | |
| TASK: [register a var] ******************************************************** | |
| skipping: [hosts] | |
| TASK: [print a var] *********************************************************** |
This file contains hidden or 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
| # I want to run bartask only if a line output from footask starts with a period. | |
| # I'm not sure what is valid to use for "???" below. | |
| # Things that don't work are: is, =, ==, equals, sameas, find. | |
| - name: footask | |
| command: ... | |
| register: manifest | |
| - name: bartask | |
| debug: msg="bartask ran" |
This file contains hidden or 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
| #lang racket | |
| (define-syntax-rule (foo form ...) | |
| ((lambda (bar) form ...) "ARG")) | |
| (foo "Hello") ; => returns "Hello" | |
| (foo bar) ; => expand: unbound identifier in module in: bar |
NewerOlder