Skip to content

Instantly share code, notes, and snippets.

@jlaska
Created July 25, 2014 13:53
Show Gist options
  • Select an option

  • Save jlaska/2d18f1acc0e8c1ac255e to your computer and use it in GitHub Desktop.

Select an option

Save jlaska/2d18f1acc0e8c1ac255e to your computer and use it in GitHub Desktop.
PLAY [A play with unicode: ¢ £ ¤ ¥] *******************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [A task name with unicode: è é ê ë] *************************************
ok: [127.0.0.1] => {
"msg": "hi there"
}
TASK: [A task with unicode parameters] ****************************************
ok: [127.0.0.1] => {
"test_var": "\u012a \u012b \u012c \u012d \u012e \u012f \u0130 \u0131 \u0132 \u0133 \u0134 \u0135 \u0136 \u0137 \u0138 \u0139 \u013a \u013b \u013c \u013d \u013e \u013f \u0140 \u0141 \u0142 \u0143 \u0144 \u0145 \u0146 \u0147 \u0148 \u0149 \u014a \u014b \u014c \u014d \u014e \u014f \u0150 \u0151 \u0152"
}
TASK: [A task using with_items containing unicode] ****************************
ok: [127.0.0.1] => (item=¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö ×) => {
"item": "\u00af \u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 \u00b7 \u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf \u00c0 \u00c1 \u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 \u00c8 \u00c9 \u00ca \u00cb \u00cc \u00cd \u00ce \u00cf \u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7",
"msg": "\u00af \u00b0 \u00b1 \u00b2 \u00b3 \u00b4 \u00b5 \u00b6 \u00b7 \u00b8 \u00b9 \u00ba \u00bb \u00bc \u00bd \u00be \u00bf \u00c0 \u00c1 \u00c2 \u00c3 \u00c4 \u00c5 \u00c6 \u00c7 \u00c8 \u00c9 \u00ca \u00cb \u00cc \u00cd \u00ce \u00cf \u00d0 \u00d1 \u00d2 \u00d3 \u00d4 \u00d5 \u00d6 \u00d7"
}
ok: [127.0.0.1] => (item=Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Ā) => {
"item": "\u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df \u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u00e6 \u00e7 \u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed \u00ee \u00ef \u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 \u00f8 \u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff \u0100",
"msg": "\u00d8 \u00d9 \u00da \u00db \u00dc \u00dd \u00de \u00df \u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u00e6 \u00e7 \u00e8 \u00e9 \u00ea \u00eb \u00ec \u00ed \u00ee \u00ef \u00f0 \u00f1 \u00f2 \u00f3 \u00f4 \u00f5 \u00f6 \u00f7 \u00f8 \u00f9 \u00fa \u00fb \u00fc \u00fd \u00fe \u00ff \u0100"
}
ok: [127.0.0.1] => (item=ā Ă ă Ą ą Ć ć Ĉ ĉ Ċ ċ Č č Ď ď Đ đ Ē ē Ĕ ĕ Ė ė Ę ę Ě ě Ĝ ĝ Ğ ğ Ġ ġ Ģ ģ Ĥ ĥ Ħ ħ Ĩ ĩ) => {
"item": "\u0101 \u0102 \u0103 \u0104 \u0105 \u0106 \u0107 \u0108 \u0109 \u010a \u010b \u010c \u010d \u010e \u010f \u0110 \u0111 \u0112 \u0113 \u0114 \u0115 \u0116 \u0117 \u0118 \u0119 \u011a \u011b \u011c \u011d \u011e \u011f \u0120 \u0121 \u0122 \u0123 \u0124 \u0125 \u0126 \u0127 \u0128 \u0129",
"msg": "\u0101 \u0102 \u0103 \u0104 \u0105 \u0106 \u0107 \u0108 \u0109 \u010a \u010b \u010c \u010d \u010e \u010f \u0110 \u0111 \u0112 \u0113 \u0114 \u0115 \u0116 \u0117 \u0118 \u0119 \u011a \u011b \u011c \u011d \u011e \u011f \u0120 \u0121 \u0122 \u0123 \u0124 \u0125 \u0126 \u0127 \u0128 \u0129"
}
TASK: [add_host ] *************************************************************
ok: [127.0.0.1] => (item=1)
ok: [127.0.0.1] => (item=2)
ok: [127.0.0.1] => (item=3)
ok: [127.0.0.1] => (item=4)
ok: [127.0.0.1] => (item=5)
PLAY [A play for hosts in group: ĪīĬĭ] ****************************************
GATHERING FACTS ***************************************************************
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].2]
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].1]
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].3]
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].4]
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].5]
TASK: [debug msg='Unicode is a good thing ™'] *********************************
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].2] => {
"msg": "Unicode is a good thing \u2122"
}
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].3] => {
"msg": "Unicode is a good thing \u2122"
}
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].5] => {
"msg": "Unicode is a good thing \u2122"
}
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].1] => {
"msg": "Unicode is a good thing \u2122"
}
ok: [[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].4] => {
"msg": "Unicode is a good thing \u2122"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=5 changed=0 unreachable=0 failed=0
[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].1 : ok=2 changed=0 unreachable=0 failed=0
[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].2 : ok=2 changed=0 unreachable=0 failed=0
[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].3 : ok=2 changed=0 unreachable=0 failed=0
[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].4 : ok=2 changed=0 unreachable=0 failed=0
[u'host-#\u03ec\u03ed\u03ee\u03ef\u03f0', u'host-\u0370\u0371\u0372\u0373\u02b9\u0375', u'host-\u0399\u039a\u039b\u039c\u039d\u039e', u'host-\u03c3\u03c4\u03c5\u03c6\u03c7\u03c8', u'host-\u03ec\u03ed\u03ee\u03ef\u03f0\u03f1'].5 : ok=2 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment