Advertisement
Guest User

ansible

a guest
Jun 10th, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.60 KB | None | 0 0
  1. onsole@ubuntu:~$ ansible all -m setup -u console --ask-sudo-pass
  2. SUDO password:
  3. localhost | SUCCESS => {
  4. "ansible_facts": {
  5. "ansible_all_ipv4_addresses": [
  6. "192.168.117.235"
  7. ],
  8. "ansible_all_ipv6_addresses": [
  9. "fe80::52e5:49ff:fe3b:ebf4"
  10. ],
  11. "ansible_architecture": "i386",
  12. "ansible_bios_date": "04/28/2011",
  13. "ansible_bios_version": "F6",
  14. "ansible_cmdline": {
  15. "BOOT_IMAGE": "/boot/vmlinuz-3.13.0-88-generic",
  16. "quiet": true,
  17. "ro": true,
  18. "root": "UUID=0ac7d9ea-fc71-4a99-800e-f0829bc3f46b",
  19. "splash": true,
  20. "vt.handoff": "7"
  21. },
  22. "ansible_date_time": {
  23. "date": "2016-06-10",
  24. "day": "10",
  25. "epoch": "1465575601",
  26. "hour": "19",
  27. "iso8601": "2016-06-10T16:20:01Z",
  28. "iso8601_basic": "20160610T192001454414",
  29. "iso8601_basic_short": "20160610T192001",
  30. "iso8601_micro": "2016-06-10T16:20:01.454584Z",
  31. "minute": "20",
  32. "month": "06",
  33. "second": "01",
  34. "time": "19:20:01",
  35. "tz": "MSK",
  36. "tz_offset": "+0300",
  37. "weekday": "Пятница",
  38. "weekday_number": "5",
  39. "weeknumber": "23",
  40. "year": "2016"
  41. },
  42. "ansible_default_ipv4": {
  43. "address": "192.168.117.235",
  44. "alias": "eth0",
  45. "broadcast": "192.168.117.255",
  46. "gateway": "192.168.117.10",
  47. "interface": "eth0",
  48. "macaddress": "50:e5:49:3b:eb:f4",
  49. "mtu": 1500,
  50. "netmask": "255.255.255.0",
  51. "network": "192.168.117.0",
  52. "type": "ether"
  53. },
  54. "ansible_default_ipv6": {},
  55. "ansible_devices": {
  56. "sda": {
  57. "holders": [],
  58. "host": "IDE interface: Marvell Technology Group Ltd. 88SE9172 SATA III 6Gb/s RAID Controller (rev 11)",
  59. "model": "ST3320620AS",
  60. "partitions": {
  61. "sda1": {
  62. "sectors": "616785920",
  63. "sectorsize": 512,
  64. "size": "294.11 GB",
  65. "start": "2048"
  66. },
  67. "sda2": {
  68. "sectors": "2",
  69. "sectorsize": 512,
  70. "size": "1.00 KB",
  71. "start": "616790014"
  72. },
  73. "sda5": {
  74. "sectors": "8351744",
  75. "sectorsize": 512,
  76. "size": "3.98 GB",
  77. "start": "616790016"
  78. }
  79. },
  80. "removable": "0",
  81. "rotational": "1",
  82. "sas_address": null,
  83. "sas_device_handle": null,
  84. "scheduler_mode": "deadline",
  85. "sectors": "625142448",
  86. "sectorsize": "512",
  87. "size": "298.09 GB",
  88. "support_discard": "0",
  89. "vendor": "ATA"
  90. }
  91. },
  92. "ansible_distribution": "Ubuntu",
  93. "ansible_distribution_major_version": "14",
  94. "ansible_distribution_release": "trusty",
  95. "ansible_distribution_version": "14.04",
  96. "ansible_dns": {
  97. "nameservers": [
  98. "127.0.1.1"
  99. ],
  100. "search": [
  101. "itmicro.lan"
  102. ]
  103. },
  104. "ansible_domain": "",
  105. "ansible_env": {
  106. "HOME": "/home/console",
  107. "LANG": "ru_RU.UTF-8",
  108. "LC_ALL": "ru_RU.UTF-8",
  109. "LC_MESSAGES": "ru_RU.UTF-8",
  110. "LOGNAME": "console",
  111. "MAIL": "/var/mail/console",
  112. "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",
  113. "PWD": "/home/console",
  114. "PYTHONPATH": "",
  115. "SHELL": "/bin/bash",
  116. "SHLVL": "1",
  117. "SSH_CLIENT": "::1 51854 22",
  118. "SSH_CONNECTION": "::1 51854 ::1 22",
  119. "SSH_TTY": "/dev/pts/12",
  120. "TERM": "xterm-256color",
  121. "USER": "console",
  122. "XDG_RUNTIME_DIR": "/run/user/1000",
  123. "XDG_SESSION_ID": "13",
  124. "_": "/bin/sh"
  125. },
  126. "ansible_eth0": {
  127. "active": true,
  128. "device": "eth0",
  129. "ipv4": {
  130. "address": "192.168.117.235",
  131. "broadcast": "192.168.117.255",
  132. "netmask": "255.255.255.0",
  133. "network": "192.168.117.0"
  134. },
  135. "ipv6": [
  136. {
  137. "address": "fe80::52e5:49ff:fe3b:ebf4",
  138. "prefix": "64",
  139. "scope": "link"
  140. }
  141. ],
  142. "macaddress": "50:e5:49:3b:eb:f4",
  143. "module": "r8169",
  144. "mtu": 1500,
  145. "pciid": "0000:08:00.0",
  146. "promisc": false,
  147. "type": "ether"
  148. },
  149. "ansible_fips": false,
  150. "ansible_form_factor": "Desktop",
  151. "ansible_fqdn": "ubuntu",
  152. "ansible_gather_subset": [
  153. "hardware",
  154. "network",
  155. "virtual"
  156. ],
  157. "ansible_hostname": "ubuntu",
  158. "ansible_interfaces": [
  159. "lo",
  160. "eth0"
  161. ],
  162. "ansible_kernel": "3.13.0-88-generic",
  163. "ansible_lo": {
  164. "active": true,
  165. "device": "lo",
  166. "ipv4": {
  167. "address": "127.0.0.1",
  168. "broadcast": "host",
  169. "netmask": "255.0.0.0",
  170. "network": "127.0.0.0"
  171. },
  172. "ipv6": [
  173. {
  174. "address": "::1",
  175. "prefix": "128",
  176. "scope": "host"
  177. }
  178. ],
  179. "mtu": 65536,
  180. "promisc": false,
  181. "type": "loopback"
  182. },
  183. "ansible_lsb": {
  184. "codename": "trusty",
  185. "description": "Ubuntu 14.04.4 LTS",
  186. "id": "Ubuntu",
  187. "major_release": "14",
  188. "release": "14.04"
  189. },
  190. "ansible_machine": "i686",
  191. "ansible_machine_id": "0a995bfa73afbf8fe7a23bd0575947e5",
  192. "ansible_memfree_mb": 346,
  193. "ansible_memory_mb": {
  194. "nocache": {
  195. "free": 3644,
  196. "used": 379
  197. },
  198. "real": {
  199. "free": 346,
  200. "total": 4023,
  201. "used": 3677
  202. },
  203. "swap": {
  204. "cached": 0,
  205. "free": 4077,
  206. "total": 4077,
  207. "used": 0
  208. }
  209. },
  210. "ansible_memtotal_mb": 4023,
  211. "ansible_mounts": [
  212. {
  213. "device": "/dev/sda1",
  214. "fstype": "ext4",
  215. "mount": "/",
  216. "options": "rw,errors=remount-ro",
  217. "size_available": 286254055424,
  218. "size_total": 310704988160,
  219. "uuid": ""
  220. }
  221. ],
  222. "ansible_nodename": "ubuntu",
  223. "ansible_os_family": "Debian",
  224. "ansible_pkg_mgr": "apt",
  225. "ansible_processor": [
  226. "GenuineIntel",
  227. "Intel(R) Celeron(R) CPU G440 @ 1.60GHz"
  228. ],
  229. "ansible_processor_cores": 1,
  230. "ansible_processor_count": 1,
  231. "ansible_processor_threads_per_core": 1,
  232. "ansible_processor_vcpus": 1,
  233. "ansible_product_name": "PA65-UD3-B3",
  234. "ansible_product_serial": "NA",
  235. "ansible_product_uuid": "NA",
  236. "ansible_product_version": "NA",
  237. "ansible_python": {
  238. "executable": "/usr/bin/python",
  239. "has_sslcontext": false,
  240. "type": "CPython",
  241. "version": {
  242. "major": 2,
  243. "micro": 6,
  244. "minor": 7,
  245. "releaselevel": "final",
  246. "serial": 0
  247. },
  248. "version_info": [
  249. 2,
  250. 7,
  251. 6,
  252. "final",
  253. 0
  254. ]
  255. },
  256. "ansible_python_version": "2.7.6",
  257. "ansible_selinux": false,
  258. "ansible_service_mgr": "upstart",
  259. "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAKeEieYOjlC/DjIgpRACR/8co9xlW22DJPa7FcsGKP3h481plwEXl2gKGJdNIqnXHseUV/5eSUgS9+b3MxYDICvXFezxg8DNVmXd+QXkBOORLEFnY54angKcrUNnuUBmtlaUSSBlWZ1kFbOYuh1wM1emSn5N5r8sqVgEBmk2yO2RAAAAFQDEArNiyukV8blzLdjrjyoa5NVsRQAAAIAKYVsGFomGv2urgAl6oOCpI3TrQxD5W6U8PSrnpiQpsnd+VMKD2KnPO8EHkF5h7Hw1C1FiG2ZfMnLfcsxdcRM8gAtpF/GoxJB8hhg8FLxMno7ISaY/IdU9vT5fUAOgoeOZ8t3IrpUyR3PYPlvYeAi+/7SLb1VGdQNXG4xQsbusGwAAAIAgTMu+8Xm/poHMTLZ87IbfzI7MFlRBfrOAU+16JHUvA3cDcTS/Hvpa06ssJsQAmPtrTY8W3wzNN7dQXrDIBDzg3oJ/DwbYXXkT+wcbxznamc1bbx6QBwDi63+IloIKMtY7q95rmaciSa9/srOIfD8G7o5vv54nTvNry6eo/BDL3Q==",
  260. "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDyEqrrSxohrzDrBaQpb9YI/toUQapbCrWnsRb6e4t34o3bEoM23xD82bfdkN3HWcZK4B5+AbMwXjacVen0Qww0=",
  261. "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICU+doK3N/SIMX/YdtydmZTeC3zwViJehnxmVgv1OqDb",
  262. "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCmm2SaEntnS6UT8WG1s7x2vGxVPoKYWU322AJDECe37fI9yNQvd3ymJnN5Ga3vLlKYUOs0NAsp1MELmhIqIQ2iyCTpUFuFMUpEWxWB2Z2yTy3ELYGOdvExDw5B8L0gPzTGgvRtFRs1j7FN8iG5lrXs1nYehTv7Ft9GeaHOqRDlUyuwcG/Gyq3wX0rzJFtAxlSZafCwrVUsG5PO+UrMfa/AtY8JeLgYIQHtkc1zEEaE3RX9uBiHG6xMs691kIqeyw4ip6i9oqoMpGDu4kQ5QvzPwMrFJel5u/47y7GKPrXIgUgBSFZKGwfL/oPxok7ucGm2R81+MApiFCjYD36IsVdN",
  263. "ansible_swapfree_mb": 4077,
  264. "ansible_swaptotal_mb": 4077,
  265. "ansible_system": "Linux",
  266. "ansible_system_capabilities": [
  267. ""
  268. ],
  269. "ansible_system_capabilities_enforced": "True",
  270. "ansible_system_vendor": "Gigabyte Technology Co., Ltd.",
  271. "ansible_uptime_seconds": 21939,
  272. "ansible_user_dir": "/home/console",
  273. "ansible_user_gecos": "console,,,",
  274. "ansible_user_gid": 1000,
  275. "ansible_user_id": "console",
  276. "ansible_user_shell": "/bin/bash",
  277. "ansible_user_uid": 1000,
  278. "ansible_userspace_architecture": "i386",
  279. "ansible_userspace_bits": "32",
  280. "ansible_virtualization_role": "host",
  281. "ansible_virtualization_type": "kvm",
  282. "module_setup": true
  283. },
  284. "changed": false
  285. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement