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
// _Channels_ are the pipes that connect concurrent | |
// goroutines. You can send values into channels from one | |
// goroutine and receive those values into another | |
// goroutine. | |
package main | |
import "fmt" | |
import "time" |
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
- set_fact: action_data="{'action':'one','data':'two'}" | |
tags: | |
- deploy_container | |
- deploy_container_id | |
- debug: msg="say {{ action_data['action'] }}" | |
tags: | |
- deploy_container | |
- deploy_container_id |
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 is a working version : | |
from ansible import utils, errors | |
import random, string | |
class LookupModule (object): | |
""" This lookup generate a UUID of the length specified by the term | |
Usage: | |
set_fact: container_id="{{ lookup('uuid',32) }}" |
NewerOlder