Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onsole@ubuntu:~$ ansible all -m setup -u console --ask-sudo-pass
- SUDO password:
- localhost | SUCCESS => {
- "ansible_facts": {
- "ansible_all_ipv4_addresses": [
- "192.168.117.235"
- ],
- "ansible_all_ipv6_addresses": [
- "fe80::52e5:49ff:fe3b:ebf4"
- ],
- "ansible_architecture": "i386",
- "ansible_bios_date": "04/28/2011",
- "ansible_bios_version": "F6",
- "ansible_cmdline": {
- "BOOT_IMAGE": "/boot/vmlinuz-3.13.0-88-generic",
- "quiet": true,
- "ro": true,
- "root": "UUID=0ac7d9ea-fc71-4a99-800e-f0829bc3f46b",
- "splash": true,
- "vt.handoff": "7"
- },
- "ansible_date_time": {
- "date": "2016-06-10",
- "day": "10",
- "epoch": "1465575601",
- "hour": "19",
- "iso8601": "2016-06-10T16:20:01Z",
- "iso8601_basic": "20160610T192001454414",
- "iso8601_basic_short": "20160610T192001",
- "iso8601_micro": "2016-06-10T16:20:01.454584Z",
- "minute": "20",
- "month": "06",
- "second": "01",
- "time": "19:20:01",
- "tz": "MSK",
- "tz_offset": "+0300",
- "weekday": "Пятница",
- "weekday_number": "5",
- "weeknumber": "23",
- "year": "2016"
- },
- "ansible_default_ipv4": {
- "address": "192.168.117.235",
- "alias": "eth0",
- "broadcast": "192.168.117.255",
- "gateway": "192.168.117.10",
- "interface": "eth0",
- "macaddress": "50:e5:49:3b:eb:f4",
- "mtu": 1500,
- "netmask": "255.255.255.0",
- "network": "192.168.117.0",
- "type": "ether"
- },
- "ansible_default_ipv6": {},
- "ansible_devices": {
- "sda": {
- "holders": [],
- "host": "IDE interface: Marvell Technology Group Ltd. 88SE9172 SATA III 6Gb/s RAID Controller (rev 11)",
- "model": "ST3320620AS",
- "partitions": {
- "sda1": {
- "sectors": "616785920",
- "sectorsize": 512,
- "size": "294.11 GB",
- "start": "2048"
- },
- "sda2": {
- "sectors": "2",
- "sectorsize": 512,
- "size": "1.00 KB",
- "start": "616790014"
- },
- "sda5": {
- "sectors": "8351744",
- "sectorsize": 512,
- "size": "3.98 GB",
- "start": "616790016"
- }
- },
- "removable": "0",
- "rotational": "1",
- "sas_address": null,
- "sas_device_handle": null,
- "scheduler_mode": "deadline",
- "sectors": "625142448",
- "sectorsize": "512",
- "size": "298.09 GB",
- "support_discard": "0",
- "vendor": "ATA"
- }
- },
- "ansible_distribution": "Ubuntu",
- "ansible_distribution_major_version": "14",
- "ansible_distribution_release": "trusty",
- "ansible_distribution_version": "14.04",
- "ansible_dns": {
- "nameservers": [
- "127.0.1.1"
- ],
- "search": [
- "itmicro.lan"
- ]
- },
- "ansible_domain": "",
- "ansible_env": {
- "HOME": "/home/console",
- "LANG": "ru_RU.UTF-8",
- "LC_ALL": "ru_RU.UTF-8",
- "LC_MESSAGES": "ru_RU.UTF-8",
- "LOGNAME": "console",
- "MAIL": "/var/mail/console",
- "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",
- "PWD": "/home/console",
- "PYTHONPATH": "",
- "SHELL": "/bin/bash",
- "SHLVL": "1",
- "SSH_CLIENT": "::1 51854 22",
- "SSH_CONNECTION": "::1 51854 ::1 22",
- "SSH_TTY": "/dev/pts/12",
- "TERM": "xterm-256color",
- "USER": "console",
- "XDG_RUNTIME_DIR": "/run/user/1000",
- "XDG_SESSION_ID": "13",
- "_": "/bin/sh"
- },
- "ansible_eth0": {
- "active": true,
- "device": "eth0",
- "ipv4": {
- "address": "192.168.117.235",
- "broadcast": "192.168.117.255",
- "netmask": "255.255.255.0",
- "network": "192.168.117.0"
- },
- "ipv6": [
- {
- "address": "fe80::52e5:49ff:fe3b:ebf4",
- "prefix": "64",
- "scope": "link"
- }
- ],
- "macaddress": "50:e5:49:3b:eb:f4",
- "module": "r8169",
- "mtu": 1500,
- "pciid": "0000:08:00.0",
- "promisc": false,
- "type": "ether"
- },
- "ansible_fips": false,
- "ansible_form_factor": "Desktop",
- "ansible_fqdn": "ubuntu",
- "ansible_gather_subset": [
- "hardware",
- "network",
- "virtual"
- ],
- "ansible_hostname": "ubuntu",
- "ansible_interfaces": [
- "lo",
- "eth0"
- ],
- "ansible_kernel": "3.13.0-88-generic",
- "ansible_lo": {
- "active": true,
- "device": "lo",
- "ipv4": {
- "address": "127.0.0.1",
- "broadcast": "host",
- "netmask": "255.0.0.0",
- "network": "127.0.0.0"
- },
- "ipv6": [
- {
- "address": "::1",
- "prefix": "128",
- "scope": "host"
- }
- ],
- "mtu": 65536,
- "promisc": false,
- "type": "loopback"
- },
- "ansible_lsb": {
- "codename": "trusty",
- "description": "Ubuntu 14.04.4 LTS",
- "id": "Ubuntu",
- "major_release": "14",
- "release": "14.04"
- },
- "ansible_machine": "i686",
- "ansible_machine_id": "0a995bfa73afbf8fe7a23bd0575947e5",
- "ansible_memfree_mb": 346,
- "ansible_memory_mb": {
- "nocache": {
- "free": 3644,
- "used": 379
- },
- "real": {
- "free": 346,
- "total": 4023,
- "used": 3677
- },
- "swap": {
- "cached": 0,
- "free": 4077,
- "total": 4077,
- "used": 0
- }
- },
- "ansible_memtotal_mb": 4023,
- "ansible_mounts": [
- {
- "device": "/dev/sda1",
- "fstype": "ext4",
- "mount": "/",
- "options": "rw,errors=remount-ro",
- "size_available": 286254055424,
- "size_total": 310704988160,
- "uuid": ""
- }
- ],
- "ansible_nodename": "ubuntu",
- "ansible_os_family": "Debian",
- "ansible_pkg_mgr": "apt",
- "ansible_processor": [
- "GenuineIntel",
- "Intel(R) Celeron(R) CPU G440 @ 1.60GHz"
- ],
- "ansible_processor_cores": 1,
- "ansible_processor_count": 1,
- "ansible_processor_threads_per_core": 1,
- "ansible_processor_vcpus": 1,
- "ansible_product_name": "PA65-UD3-B3",
- "ansible_product_serial": "NA",
- "ansible_product_uuid": "NA",
- "ansible_product_version": "NA",
- "ansible_python": {
- "executable": "/usr/bin/python",
- "has_sslcontext": false,
- "type": "CPython",
- "version": {
- "major": 2,
- "micro": 6,
- "minor": 7,
- "releaselevel": "final",
- "serial": 0
- },
- "version_info": [
- 2,
- 7,
- 6,
- "final",
- 0
- ]
- },
- "ansible_python_version": "2.7.6",
- "ansible_selinux": false,
- "ansible_service_mgr": "upstart",
- "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==",
- "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDyEqrrSxohrzDrBaQpb9YI/toUQapbCrWnsRb6e4t34o3bEoM23xD82bfdkN3HWcZK4B5+AbMwXjacVen0Qww0=",
- "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICU+doK3N/SIMX/YdtydmZTeC3zwViJehnxmVgv1OqDb",
- "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCmm2SaEntnS6UT8WG1s7x2vGxVPoKYWU322AJDECe37fI9yNQvd3ymJnN5Ga3vLlKYUOs0NAsp1MELmhIqIQ2iyCTpUFuFMUpEWxWB2Z2yTy3ELYGOdvExDw5B8L0gPzTGgvRtFRs1j7FN8iG5lrXs1nYehTv7Ft9GeaHOqRDlUyuwcG/Gyq3wX0rzJFtAxlSZafCwrVUsG5PO+UrMfa/AtY8JeLgYIQHtkc1zEEaE3RX9uBiHG6xMs691kIqeyw4ip6i9oqoMpGDu4kQ5QvzPwMrFJel5u/47y7GKPrXIgUgBSFZKGwfL/oPxok7ucGm2R81+MApiFCjYD36IsVdN",
- "ansible_swapfree_mb": 4077,
- "ansible_swaptotal_mb": 4077,
- "ansible_system": "Linux",
- "ansible_system_capabilities": [
- ""
- ],
- "ansible_system_capabilities_enforced": "True",
- "ansible_system_vendor": "Gigabyte Technology Co., Ltd.",
- "ansible_uptime_seconds": 21939,
- "ansible_user_dir": "/home/console",
- "ansible_user_gecos": "console,,,",
- "ansible_user_gid": 1000,
- "ansible_user_id": "console",
- "ansible_user_shell": "/bin/bash",
- "ansible_user_uid": 1000,
- "ansible_userspace_architecture": "i386",
- "ansible_userspace_bits": "32",
- "ansible_virtualization_role": "host",
- "ansible_virtualization_type": "kvm",
- "module_setup": true
- },
- "changed": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement