sudo add-apt-repository -y ppa:rquillo/ansible sudo apt-get update sudo apt-get install ansible -y
[dbservers] one.example.com two.example.com three.example.com [dnsservers] rs1.example.com ansible_ssh_port=5555 ansible_ssh_host=192.168.1.50 rs2.example.com ns[01:50].example.com
$ ansible dnsservers -m ping dns1.example.com | success >> { "changed": false, "ping": "pong" } dns2.example.com | success >> { "changed": false, "ping": "pong" }
$ ansible dnsservers -m setup
dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.35" ], "ansible_all_ipv6_addresses": [ "fe80::ac2a:eaff:fe96:ea53" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "barrier": "off", "console": "ttyS0", "panic": "15", "ro": true, "root": "UUID=c5412437-f80e-4db4-81bc-75f751a60792", "xencons": "ttyS" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891466", "hour": "16", "iso8601": "2013-10-04T12:57:46Z", "iso8601_micro": "2013-10-04T12:57:46.130144Z", "minute": "57", "month": "10", "second": "46", "time": "16:57:46", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.35", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ae:aa:ea:96:ea:53", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "16482304", "sectorsize": 512, "size": "7.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "precise", "ansible_distribution_version": "12.04", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.35", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::ac2a:eaff:fe96:ea53", "prefix": "64", "scope": "link" } ], "macaddress": "ae:aa:ea:96:ea:53", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns1.example.com", "ansible_hostname": "dns1", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "precise", "description": "Ubuntu 12.04.3 LTS", "id": "Ubuntu", "major_release": "12", "release": "12.04" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 181, "ansible_memtotal_mb": 1061, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext4", "mount": "/", "options": "rw,errors=panic,barrier=0", "size_available": 6332063744, "size_total": 7798611968 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw", "size_available": 110679040, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzdC1kc3MAAACBAI09PTx0Jv2dAhmwGoPV45G6ZEiZ84TwjVm6HYbGOHUZe+CKnYwWThD8ZqXYzRyvVxCcVefiS6m0PKY6a5id2GySyQlTM952bDaifd09ot9pCWjwNp5q4/EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn+7BvP0Kn6AtAAAAFQDIeO7uTIVR/kzNTV9xHN/uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq+vCDOp+2rE/dIkcBcd+xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ/NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA+sJa7Sw/HF88ag/gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA43NTYAAABBBH3b5e6ZUbR+gMLMiOwcQzwuEPE+KIXHmzywNcOIltWY4ZiGRXlQZMyEFMENiOSivFHByMBV0wJj8VMxJocHd7s=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDH5WKsJ0UJ8LDQMDBCcbkbdDVXcG2lhdBOmxCVm128ztp3PJrHQoNwy1njit/Sty34HYvwjVXvuaT8ksCSAGhi8VPvRo+oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT/NWT0Ub5yHBJCWK+mYAwq0M2tK+QSrsukmG93flGLboVlWTfMIM+UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0+pEvTGr9ucNMbXoZzAhX3hPN+KG8hbZ+AX3z0TXn", "ansible_swapfree_mb": 482, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false } dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.43" ], "ansible_all_ipv6_addresses": [ "fe80::cc2b:97ff:fe7b:d221" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "autorun": "fsck", "barrier": "off", "console": "xvc0", "ro": true, "root": "/dev/mapper/system-root" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891479", "hour": "16", "iso8601": "2013-10-04T12:57:59Z", "iso8601_micro": "2013-10-04T12:57:59.276859Z", "minute": "57", "month": "10", "second": "59", "time": "16:57:59", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.43", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ce:cb:97:7b:d2:21", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "12288000", "sectorsize": 512, "size": "5.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "12582912", "sectorsize": "512", "size": "6.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Debian", "ansible_distribution_release": "NA", "ansible_distribution_version": "7.0", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.43", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::cc2b:97ff:fe7b:d221", "prefix": "64", "scope": "link" } ], "macaddress": "ce:cb:97:7b:d2:21", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns2.example.com", "ansible_hostname": "dns2", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "wheezy", "description": "Debian GNU/Linux 7.0 (wheezy)", "id": "Debian", "major_release": "7", "release": "7.0" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 9, "ansible_memtotal_mb": 547, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext3", "mount": "/", "options": "rw,relatime,errors=panic,barrier=0,data=ordered", "size_available": 3733434368, "size_total": 5684838400 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw,relatime,user_xattr,acl,barrier=1", "size_available": 112991232, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3szaC1kc3MAAACBAJFX2aR1G5QM57/3vLSlLmPR46nXNPAx0jtf6fPWkit/64W5FFBH7BW9YtPHGrucAagz1drKd9SiE+U5GlVqg/4xXOLMHmWUHitivVV9obtkyF2BM/+1OKTwxGIBP6Vu3YP/Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno+ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br+Zk3peQRf6rie7QWV/lAXyDfInbGxgklFX6yAcd+JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx+4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU/Wr+YeyKtJ3IHDz0hLRO+ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB/Fg/GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC//XAn9ir7AmANUCeXSz1Fg==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM70PfnLbbXU+cJ27tWcKoom+P+TC08EncjB71bF4zp7Kw46YrWVjtPoFqAy3b1E2KkzUNcSrbJyEoCIgfzCC3Y=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqltJwL3ThbfWbwBSuaZ2zZNRtcrjld0Z/ulAM6sygWTjHIeIuxT1lbJJFfKZneyo29nPho1q/HAlYGDRdcDZhKufNqDN/c9iFDbjnuPvCetUxxf+t9jKnUHnqDpO+fLYbosIEio9cmS/pOEwAU4+VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un+V6B7fTcfoZcPDrMsPj/NpOVh3egCJGg5VRJ2D3Fmoapg/R3ZPrMD/AW+PNQLa+1GSIVTc3cNu4ctXgnwQJwSjWL", "ansible_swapfree_mb": 412, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false }
/ EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn + 7BvP0Kn6AtAAAAFQDIeO7uTIVR / kzNTV9xHN / uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq + vCDOp + 2rE / dIkcBcd + xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ / NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA + sJa7Sw / HF88ag / gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ ==", dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.35" ], "ansible_all_ipv6_addresses": [ "fe80::ac2a:eaff:fe96:ea53" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "barrier": "off", "console": "ttyS0", "panic": "15", "ro": true, "root": "UUID=c5412437-f80e-4db4-81bc-75f751a60792", "xencons": "ttyS" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891466", "hour": "16", "iso8601": "2013-10-04T12:57:46Z", "iso8601_micro": "2013-10-04T12:57:46.130144Z", "minute": "57", "month": "10", "second": "46", "time": "16:57:46", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.35", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ae:aa:ea:96:ea:53", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "16482304", "sectorsize": 512, "size": "7.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "precise", "ansible_distribution_version": "12.04", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.35", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::ac2a:eaff:fe96:ea53", "prefix": "64", "scope": "link" } ], "macaddress": "ae:aa:ea:96:ea:53", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns1.example.com", "ansible_hostname": "dns1", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "precise", "description": "Ubuntu 12.04.3 LTS", "id": "Ubuntu", "major_release": "12", "release": "12.04" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 181, "ansible_memtotal_mb": 1061, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext4", "mount": "/", "options": "rw,errors=panic,barrier=0", "size_available": 6332063744, "size_total": 7798611968 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw", "size_available": 110679040, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzdC1kc3MAAACBAI09PTx0Jv2dAhmwGoPV45G6ZEiZ84TwjVm6HYbGOHUZe+CKnYwWThD8ZqXYzRyvVxCcVefiS6m0PKY6a5id2GySyQlTM952bDaifd09ot9pCWjwNp5q4/EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn+7BvP0Kn6AtAAAAFQDIeO7uTIVR/kzNTV9xHN/uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq+vCDOp+2rE/dIkcBcd+xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ/NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA+sJa7Sw/HF88ag/gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA43NTYAAABBBH3b5e6ZUbR+gMLMiOwcQzwuEPE+KIXHmzywNcOIltWY4ZiGRXlQZMyEFMENiOSivFHByMBV0wJj8VMxJocHd7s=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDH5WKsJ0UJ8LDQMDBCcbkbdDVXcG2lhdBOmxCVm128ztp3PJrHQoNwy1njit/Sty34HYvwjVXvuaT8ksCSAGhi8VPvRo+oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT/NWT0Ub5yHBJCWK+mYAwq0M2tK+QSrsukmG93flGLboVlWTfMIM+UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0+pEvTGr9ucNMbXoZzAhX3hPN+KG8hbZ+AX3z0TXn", "ansible_swapfree_mb": 482, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false } dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.43" ], "ansible_all_ipv6_addresses": [ "fe80::cc2b:97ff:fe7b:d221" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "autorun": "fsck", "barrier": "off", "console": "xvc0", "ro": true, "root": "/dev/mapper/system-root" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891479", "hour": "16", "iso8601": "2013-10-04T12:57:59Z", "iso8601_micro": "2013-10-04T12:57:59.276859Z", "minute": "57", "month": "10", "second": "59", "time": "16:57:59", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.43", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ce:cb:97:7b:d2:21", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "12288000", "sectorsize": 512, "size": "5.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "12582912", "sectorsize": "512", "size": "6.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Debian", "ansible_distribution_release": "NA", "ansible_distribution_version": "7.0", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.43", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::cc2b:97ff:fe7b:d221", "prefix": "64", "scope": "link" } ], "macaddress": "ce:cb:97:7b:d2:21", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns2.example.com", "ansible_hostname": "dns2", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "wheezy", "description": "Debian GNU/Linux 7.0 (wheezy)", "id": "Debian", "major_release": "7", "release": "7.0" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 9, "ansible_memtotal_mb": 547, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext3", "mount": "/", "options": "rw,relatime,errors=panic,barrier=0,data=ordered", "size_available": 3733434368, "size_total": 5684838400 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw,relatime,user_xattr,acl,barrier=1", "size_available": 112991232, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3szaC1kc3MAAACBAJFX2aR1G5QM57/3vLSlLmPR46nXNPAx0jtf6fPWkit/64W5FFBH7BW9YtPHGrucAagz1drKd9SiE+U5GlVqg/4xXOLMHmWUHitivVV9obtkyF2BM/+1OKTwxGIBP6Vu3YP/Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno+ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br+Zk3peQRf6rie7QWV/lAXyDfInbGxgklFX6yAcd+JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx+4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU/Wr+YeyKtJ3IHDz0hLRO+ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB/Fg/GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC//XAn9ir7AmANUCeXSz1Fg==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM70PfnLbbXU+cJ27tWcKoom+P+TC08EncjB71bF4zp7Kw46YrWVjtPoFqAy3b1E2KkzUNcSrbJyEoCIgfzCC3Y=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqltJwL3ThbfWbwBSuaZ2zZNRtcrjld0Z/ulAM6sygWTjHIeIuxT1lbJJFfKZneyo29nPho1q/HAlYGDRdcDZhKufNqDN/c9iFDbjnuPvCetUxxf+t9jKnUHnqDpO+fLYbosIEio9cmS/pOEwAU4+VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un+V6B7fTcfoZcPDrMsPj/NpOVh3egCJGg5VRJ2D3Fmoapg/R3ZPrMD/AW+PNQLa+1GSIVTc3cNu4ctXgnwQJwSjWL", "ansible_swapfree_mb": 412, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false }
+ oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT / NWT0Ub5yHBJCWK + mYAwq0M2tK + QSrsukmG93flGLboVlWTfMIM + UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0 + pEvTGr9ucNMbXoZzAhX3hPN + KG8hbZ + AX3z0TXn", dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.35" ], "ansible_all_ipv6_addresses": [ "fe80::ac2a:eaff:fe96:ea53" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "barrier": "off", "console": "ttyS0", "panic": "15", "ro": true, "root": "UUID=c5412437-f80e-4db4-81bc-75f751a60792", "xencons": "ttyS" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891466", "hour": "16", "iso8601": "2013-10-04T12:57:46Z", "iso8601_micro": "2013-10-04T12:57:46.130144Z", "minute": "57", "month": "10", "second": "46", "time": "16:57:46", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.35", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ae:aa:ea:96:ea:53", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "16482304", "sectorsize": 512, "size": "7.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "precise", "ansible_distribution_version": "12.04", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.35", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::ac2a:eaff:fe96:ea53", "prefix": "64", "scope": "link" } ], "macaddress": "ae:aa:ea:96:ea:53", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns1.example.com", "ansible_hostname": "dns1", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "precise", "description": "Ubuntu 12.04.3 LTS", "id": "Ubuntu", "major_release": "12", "release": "12.04" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 181, "ansible_memtotal_mb": 1061, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext4", "mount": "/", "options": "rw,errors=panic,barrier=0", "size_available": 6332063744, "size_total": 7798611968 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw", "size_available": 110679040, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzdC1kc3MAAACBAI09PTx0Jv2dAhmwGoPV45G6ZEiZ84TwjVm6HYbGOHUZe+CKnYwWThD8ZqXYzRyvVxCcVefiS6m0PKY6a5id2GySyQlTM952bDaifd09ot9pCWjwNp5q4/EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn+7BvP0Kn6AtAAAAFQDIeO7uTIVR/kzNTV9xHN/uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq+vCDOp+2rE/dIkcBcd+xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ/NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA+sJa7Sw/HF88ag/gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA43NTYAAABBBH3b5e6ZUbR+gMLMiOwcQzwuEPE+KIXHmzywNcOIltWY4ZiGRXlQZMyEFMENiOSivFHByMBV0wJj8VMxJocHd7s=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDH5WKsJ0UJ8LDQMDBCcbkbdDVXcG2lhdBOmxCVm128ztp3PJrHQoNwy1njit/Sty34HYvwjVXvuaT8ksCSAGhi8VPvRo+oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT/NWT0Ub5yHBJCWK+mYAwq0M2tK+QSrsukmG93flGLboVlWTfMIM+UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0+pEvTGr9ucNMbXoZzAhX3hPN+KG8hbZ+AX3z0TXn", "ansible_swapfree_mb": 482, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false } dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.43" ], "ansible_all_ipv6_addresses": [ "fe80::cc2b:97ff:fe7b:d221" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "autorun": "fsck", "barrier": "off", "console": "xvc0", "ro": true, "root": "/dev/mapper/system-root" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891479", "hour": "16", "iso8601": "2013-10-04T12:57:59Z", "iso8601_micro": "2013-10-04T12:57:59.276859Z", "minute": "57", "month": "10", "second": "59", "time": "16:57:59", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.43", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ce:cb:97:7b:d2:21", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "12288000", "sectorsize": 512, "size": "5.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "12582912", "sectorsize": "512", "size": "6.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Debian", "ansible_distribution_release": "NA", "ansible_distribution_version": "7.0", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.43", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::cc2b:97ff:fe7b:d221", "prefix": "64", "scope": "link" } ], "macaddress": "ce:cb:97:7b:d2:21", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns2.example.com", "ansible_hostname": "dns2", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "wheezy", "description": "Debian GNU/Linux 7.0 (wheezy)", "id": "Debian", "major_release": "7", "release": "7.0" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 9, "ansible_memtotal_mb": 547, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext3", "mount": "/", "options": "rw,relatime,errors=panic,barrier=0,data=ordered", "size_available": 3733434368, "size_total": 5684838400 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw,relatime,user_xattr,acl,barrier=1", "size_available": 112991232, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3szaC1kc3MAAACBAJFX2aR1G5QM57/3vLSlLmPR46nXNPAx0jtf6fPWkit/64W5FFBH7BW9YtPHGrucAagz1drKd9SiE+U5GlVqg/4xXOLMHmWUHitivVV9obtkyF2BM/+1OKTwxGIBP6Vu3YP/Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno+ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br+Zk3peQRf6rie7QWV/lAXyDfInbGxgklFX6yAcd+JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx+4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU/Wr+YeyKtJ3IHDz0hLRO+ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB/Fg/GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC//XAn9ir7AmANUCeXSz1Fg==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM70PfnLbbXU+cJ27tWcKoom+P+TC08EncjB71bF4zp7Kw46YrWVjtPoFqAy3b1E2KkzUNcSrbJyEoCIgfzCC3Y=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqltJwL3ThbfWbwBSuaZ2zZNRtcrjld0Z/ulAM6sygWTjHIeIuxT1lbJJFfKZneyo29nPho1q/HAlYGDRdcDZhKufNqDN/c9iFDbjnuPvCetUxxf+t9jKnUHnqDpO+fLYbosIEio9cmS/pOEwAU4+VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un+V6B7fTcfoZcPDrMsPj/NpOVh3egCJGg5VRJ2D3Fmoapg/R3ZPrMD/AW+PNQLa+1GSIVTc3cNu4ctXgnwQJwSjWL", "ansible_swapfree_mb": 412, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false }
/ 64W5FFBH7BW9YtPHGrucAagz1drKd9SiE + U5GlVqg / 4xXOLMHmWUHitivVV9obtkyF2BM / + 1OKTwxGIBP6Vu3YP / Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno + ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br + Zk3peQRf6rie7QWV / lAXyDfInbGxgklFX6yAcd + JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx + 4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU / Wr + YeyKtJ3IHDz0hLRO + ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB / Fg / GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC // XAn9ir7AmANUCeXSz1Fg ==", dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.35" ], "ansible_all_ipv6_addresses": [ "fe80::ac2a:eaff:fe96:ea53" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "barrier": "off", "console": "ttyS0", "panic": "15", "ro": true, "root": "UUID=c5412437-f80e-4db4-81bc-75f751a60792", "xencons": "ttyS" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891466", "hour": "16", "iso8601": "2013-10-04T12:57:46Z", "iso8601_micro": "2013-10-04T12:57:46.130144Z", "minute": "57", "month": "10", "second": "46", "time": "16:57:46", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.35", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ae:aa:ea:96:ea:53", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "16482304", "sectorsize": 512, "size": "7.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "precise", "ansible_distribution_version": "12.04", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.35", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::ac2a:eaff:fe96:ea53", "prefix": "64", "scope": "link" } ], "macaddress": "ae:aa:ea:96:ea:53", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns1.example.com", "ansible_hostname": "dns1", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "precise", "description": "Ubuntu 12.04.3 LTS", "id": "Ubuntu", "major_release": "12", "release": "12.04" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 181, "ansible_memtotal_mb": 1061, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext4", "mount": "/", "options": "rw,errors=panic,barrier=0", "size_available": 6332063744, "size_total": 7798611968 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw", "size_available": 110679040, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzdC1kc3MAAACBAI09PTx0Jv2dAhmwGoPV45G6ZEiZ84TwjVm6HYbGOHUZe+CKnYwWThD8ZqXYzRyvVxCcVefiS6m0PKY6a5id2GySyQlTM952bDaifd09ot9pCWjwNp5q4/EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn+7BvP0Kn6AtAAAAFQDIeO7uTIVR/kzNTV9xHN/uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq+vCDOp+2rE/dIkcBcd+xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ/NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA+sJa7Sw/HF88ag/gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA43NTYAAABBBH3b5e6ZUbR+gMLMiOwcQzwuEPE+KIXHmzywNcOIltWY4ZiGRXlQZMyEFMENiOSivFHByMBV0wJj8VMxJocHd7s=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDH5WKsJ0UJ8LDQMDBCcbkbdDVXcG2lhdBOmxCVm128ztp3PJrHQoNwy1njit/Sty34HYvwjVXvuaT8ksCSAGhi8VPvRo+oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT/NWT0Ub5yHBJCWK+mYAwq0M2tK+QSrsukmG93flGLboVlWTfMIM+UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0+pEvTGr9ucNMbXoZzAhX3hPN+KG8hbZ+AX3z0TXn", "ansible_swapfree_mb": 482, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false } dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.43" ], "ansible_all_ipv6_addresses": [ "fe80::cc2b:97ff:fe7b:d221" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "autorun": "fsck", "barrier": "off", "console": "xvc0", "ro": true, "root": "/dev/mapper/system-root" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891479", "hour": "16", "iso8601": "2013-10-04T12:57:59Z", "iso8601_micro": "2013-10-04T12:57:59.276859Z", "minute": "57", "month": "10", "second": "59", "time": "16:57:59", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.43", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ce:cb:97:7b:d2:21", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "12288000", "sectorsize": 512, "size": "5.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "12582912", "sectorsize": "512", "size": "6.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Debian", "ansible_distribution_release": "NA", "ansible_distribution_version": "7.0", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.43", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::cc2b:97ff:fe7b:d221", "prefix": "64", "scope": "link" } ], "macaddress": "ce:cb:97:7b:d2:21", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns2.example.com", "ansible_hostname": "dns2", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "wheezy", "description": "Debian GNU/Linux 7.0 (wheezy)", "id": "Debian", "major_release": "7", "release": "7.0" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 9, "ansible_memtotal_mb": 547, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext3", "mount": "/", "options": "rw,relatime,errors=panic,barrier=0,data=ordered", "size_available": 3733434368, "size_total": 5684838400 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw,relatime,user_xattr,acl,barrier=1", "size_available": 112991232, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3szaC1kc3MAAACBAJFX2aR1G5QM57/3vLSlLmPR46nXNPAx0jtf6fPWkit/64W5FFBH7BW9YtPHGrucAagz1drKd9SiE+U5GlVqg/4xXOLMHmWUHitivVV9obtkyF2BM/+1OKTwxGIBP6Vu3YP/Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno+ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br+Zk3peQRf6rie7QWV/lAXyDfInbGxgklFX6yAcd+JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx+4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU/Wr+YeyKtJ3IHDz0hLRO+ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB/Fg/GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC//XAn9ir7AmANUCeXSz1Fg==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM70PfnLbbXU+cJ27tWcKoom+P+TC08EncjB71bF4zp7Kw46YrWVjtPoFqAy3b1E2KkzUNcSrbJyEoCIgfzCC3Y=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqltJwL3ThbfWbwBSuaZ2zZNRtcrjld0Z/ulAM6sygWTjHIeIuxT1lbJJFfKZneyo29nPho1q/HAlYGDRdcDZhKufNqDN/c9iFDbjnuPvCetUxxf+t9jKnUHnqDpO+fLYbosIEio9cmS/pOEwAU4+VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un+V6B7fTcfoZcPDrMsPj/NpOVh3egCJGg5VRJ2D3Fmoapg/R3ZPrMD/AW+PNQLa+1GSIVTc3cNu4ctXgnwQJwSjWL", "ansible_swapfree_mb": 412, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false }
/ HAlYGDRdcDZhKufNqDN / c9iFDbjnuPvCetUxxf + t9jKnUHnqDpO + fLYbosIEio9cmS / pOEwAU4 + VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un + V6B7fTcfoZcPDrMsPj / NpOVh3egCJGg5VRJ2D3Fmoapg / R3ZPrMD / AW + PNQLa + 1GSIVTc3cNu4ctXgnwQJwSjWL", dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.35" ], "ansible_all_ipv6_addresses": [ "fe80::ac2a:eaff:fe96:ea53" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "barrier": "off", "console": "ttyS0", "panic": "15", "ro": true, "root": "UUID=c5412437-f80e-4db4-81bc-75f751a60792", "xencons": "ttyS" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891466", "hour": "16", "iso8601": "2013-10-04T12:57:46Z", "iso8601_micro": "2013-10-04T12:57:46.130144Z", "minute": "57", "month": "10", "second": "46", "time": "16:57:46", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.35", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ae:aa:ea:96:ea:53", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "16482304", "sectorsize": 512, "size": "7.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "precise", "ansible_distribution_version": "12.04", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.35", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::ac2a:eaff:fe96:ea53", "prefix": "64", "scope": "link" } ], "macaddress": "ae:aa:ea:96:ea:53", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns1.example.com", "ansible_hostname": "dns1", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "precise", "description": "Ubuntu 12.04.3 LTS", "id": "Ubuntu", "major_release": "12", "release": "12.04" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 181, "ansible_memtotal_mb": 1061, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext4", "mount": "/", "options": "rw,errors=panic,barrier=0", "size_available": 6332063744, "size_total": 7798611968 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw", "size_available": 110679040, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3NzdC1kc3MAAACBAI09PTx0Jv2dAhmwGoPV45G6ZEiZ84TwjVm6HYbGOHUZe+CKnYwWThD8ZqXYzRyvVxCcVefiS6m0PKY6a5id2GySyQlTM952bDaifd09ot9pCWjwNp5q4/EQdIG3R9Kt96DfsraVrvmJWG1qQMaUlnsiZzxHWv4Fn+7BvP0Kn6AtAAAAFQDIeO7uTIVR/kzNTV9xHN/uW6KJ8wAAAIALATT5RMZUQhtwz42ek8254hrlEqSyMnWyq+vCDOp+2rE/dIkcBcd+xnfV2lTkeizAMTzYETOE8IES4rXWKFf2AlBTk9IQDnZI0ABlpUmXQVZvHxl8pKwLwzRPA7XeW4f4bXQXimUPHzCdnrwxLj7Qht4JaspL2znMCKOtpwWBrAAAAIB45bgP1JIlVpWaj1FJ/NKhDDv5D9yM7GXaljsUXL1T7KGtZ9yMA+sJa7Sw/HF88ag/gjxe6kUwmkrsvtrsza3WpfaMYupKFZtJwmQabxYPM1QWAtVONxeSo30IimFLQuaj6tgzfD1faJVyDdFydWNDUfZ3cn5iNsCz6khsc241zQ==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA43NTYAAABBBH3b5e6ZUbR+gMLMiOwcQzwuEPE+KIXHmzywNcOIltWY4ZiGRXlQZMyEFMENiOSivFHByMBV0wJj8VMxJocHd7s=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDH5WKsJ0UJ8LDQMDBCcbkbdDVXcG2lhdBOmxCVm128ztp3PJrHQoNwy1njit/Sty34HYvwjVXvuaT8ksCSAGhi8VPvRo+oqGaSdt3T39Ew5DsKeJTOZDqL1Vz1jNbPvvVjsdB7v34zTgEdnjuTzlwPvtNtXyTJonXC0KDlLl5WAiYSb9XpLB0rjjKAGNautp0Mgx6olWadpMT/NWT0Ub5yHBJCWK+mYAwq0M2tK+QSrsukmG93flGLboVlWTfMIM+UUR2MH3OxI7ew6Oc5P2ligH3rcHhcAWwXLIAsMJ5vcmH0+pEvTGr9ucNMbXoZzAhX3hPN+KG8hbZ+AX3z0TXn", "ansible_swapfree_mb": 482, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false } dns1.example.com | success >> { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.1.43" ], "ansible_all_ipv6_addresses": [ "fe80::cc2b:97ff:fe7b:d221" ], "ansible_architecture": "x86_64", "ansible_bios_date": "", "ansible_bios_version": "", "ansible_cmdline": { "autorun": "fsck", "barrier": "off", "console": "xvc0", "ro": true, "root": "/dev/mapper/system-root" }, "ansible_date_time": { "date": "2013-10-04", "day": "04", "epoch": "1380891479", "hour": "16", "iso8601": "2013-10-04T12:57:59Z", "iso8601_micro": "2013-10-04T12:57:59.276859Z", "minute": "57", "month": "10", "second": "59", "time": "16:57:59", "tz": "MSK", "year": "2013" }, "ansible_default_ipv4": { "address": "192.168.1.43", "alias": "eth0", "gateway": "192.168.1.1", "interface": "eth0", "macaddress": "ce:cb:97:7b:d2:21", "mtu": 1500, "netmask": "255.255.255.0", "network": "192.168.1.0", "type": "ether" }, "ansible_default_ipv6": {}, "ansible_devices": { "xvda": { "holders": [], "host": "", "model": null, "partitions": { "xvda1": { "sectors": "290816", "sectorsize": 512, "size": "142.00 MB", "start": "2048" }, "xvda2": { "sectors": "12288000", "sectorsize": 512, "size": "5.86 GB", "start": "292864" } }, "removable": "0", "rotational": "0", "scheduler_mode": "cfq", "sectors": "12582912", "sectorsize": "512", "size": "6.00 GB", "support_discard": "0", "vendor": null } }, "ansible_distribution": "Debian", "ansible_distribution_release": "NA", "ansible_distribution_version": "7.0", "ansible_domain": "", "ansible_eth0": { "active": true, "device": "eth0", "ipv4": { "address": "192.168.1.43", "netmask": "255.255.255.0", "network": "192.168.1.0" }, "ipv6": [ { "address": "fe80::cc2b:97ff:fe7b:d221", "prefix": "64", "scope": "link" } ], "macaddress": "ce:cb:97:7b:d2:21", "module": "xennet", "mtu": 1500, "type": "ether" }, "ansible_form_factor": "", "ansible_fqdn": "dns2.example.com", "ansible_hostname": "dns2", "ansible_interfaces": [ "lo", "eth0" ], "ansible_kernel": "3.1.0-1.2-xen", "ansible_lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 16436, "type": "loopback" }, "ansible_lsb": { "codename": "wheezy", "description": "Debian GNU/Linux 7.0 (wheezy)", "id": "Debian", "major_release": "7", "release": "7.0" }, "ansible_machine": "x86_64", "ansible_memfree_mb": 9, "ansible_memtotal_mb": 547, "ansible_mounts": [ { "device": "/dev/mapper/system-root", "fstype": "ext3", "mount": "/", "options": "rw,relatime,errors=panic,barrier=0,data=ordered", "size_available": 3733434368, "size_total": 5684838400 }, { "device": "/dev/xvda1", "fstype": "ext2", "mount": "/boot", "options": "rw,relatime,user_xattr,acl,barrier=1", "size_available": 112991232, "size_total": 139539456 } ], "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_processor": [ "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz", "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz" ], "ansible_processor_cores": 1, "ansible_processor_count": 8, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 8, "ansible_product_name": "", "ansible_product_serial": "", "ansible_product_uuid": "", "ansible_product_version": "", "ansible_python_version": "2.7.3", "ansible_selinux": false, "ansible_ssh_host_key_dsa_public": "AAAAB3szaC1kc3MAAACBAJFX2aR1G5QM57/3vLSlLmPR46nXNPAx0jtf6fPWkit/64W5FFBH7BW9YtPHGrucAagz1drKd9SiE+U5GlVqg/4xXOLMHmWUHitivVV9obtkyF2BM/+1OKTwxGIBP6Vu3YP/Wbpbv5TDCxjClWpZs3kCWrqRsScTdZTkk66YDTmbAAAAFQCEEjs6jtnyfF45scSgIxy60we9bQAAAIAzlb3pno+ljpE7yEjh6oBvl1RgUeYzwJZxHkBRMfOt30DyaCuXhNVhykhGYFqybv66BSu3C2br+Zk3peQRf6rie7QWV/lAXyDfInbGxgklFX6yAcd+JYj4u2vJ9j2k3GinnN9TLL3kafn0oqduy8sujozTCFZcG7dJx+4NZY29ZgAAAIBB94cFFAxC56HApvuRAcU/Wr+YeyKtJ3IHDz0hLRO+ziyuMgr2ajG80LNBGzG3rV2AEXSlH6egXaLfzcn9iPlB7VFpB/Fg/GZGOSpIUCFSSpEke6AoO8Z19Y5uR2EfcegyHhWVXGkIsaIon5KnH1bC//XAn9ir7AmANUCeXSz1Fg==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM70PfnLbbXU+cJ27tWcKoom+P+TC08EncjB71bF4zp7Kw46YrWVjtPoFqAy3b1E2KkzUNcSrbJyEoCIgfzCC3Y=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqltJwL3ThbfWbwBSuaZ2zZNRtcrjld0Z/ulAM6sygWTjHIeIuxT1lbJJFfKZneyo29nPho1q/HAlYGDRdcDZhKufNqDN/c9iFDbjnuPvCetUxxf+t9jKnUHnqDpO+fLYbosIEio9cmS/pOEwAU4+VBB8mdNAj9fjqrE08xcdEgt8QnAjIRlKDCdtTuYbisyt96GR10RrLPkr0epqGmHE6vzC1PyidqmQkGuCrcJHPJiS40J7S8QVP11TRS4Un+V6B7fTcfoZcPDrMsPj/NpOVh3egCJGg5VRJ2D3Fmoapg/R3ZPrMD/AW+PNQLa+1GSIVTc3cNu4ctXgnwQJwSjWL", "ansible_swapfree_mb": 412, "ansible_swaptotal_mb": 487, "ansible_system": "Linux", "ansible_system_vendor": "", "ansible_user_id": "root", "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "xen" }, "changed": false }
$ ansible dnsservers -m lvol -a "vg=examplegroup lv=examplevolume size=1024 state=present" dns1.example.com | success >> { "changed": true, "msg": "" } dns2.example.com | success >> { "changed": false, "msg": "" }
ansible-playbook <__.yml> ... [ ]
--- - hosts: webservers
hosts: webservers
--- - hosts: webservers user: yourname sudo: yes
- hosts: webservers vars: http_port: 80 max_clients: 200
- hosts: webservers user: yourname tasks: - service: name=nginx state=started
--- - hosts: webservers user: yourname tasks: - service: name=nginx state=started sudo: yes
# gpgsql-password={{ lookup('password', 'credentials/' + inventory_hostname + '/postgresql/powerdns', length=15) }} # IPv4-, ββ powerdns local-address={{ ansible_default_ipv4.address }} # IPv6-, ββ powerdns local-ipv6={{ ansible_default_ipv6.address }} # nsid dns- (EDNS option 3, rfc5001) server-id={{ ansible_hostname }}
- name: generate powerdns config template: src=pdns.conf.j2 dest=/etc/powerdns/pdns.conf owner=powerdns group=powerdns mode=600
--- - hosts: webservers vars: max_clients: 200 tasks: # # , βrestart apacheβ # - name: write the apache config file template: src=/srv/httpd.j2 dest=/etc/httpd.conf notify: - restart apache - name: ensure apache is running service: name=httpd state=started # handlers: - name: restart apache # service - service: name=httpd state=restarted
tasks: # # last_result - template: src=/templates/foo.j2 dest=/etc/foo.conf register: last_result # last_result.changed # true - , - - command: echo 'the file has changed' when: last_result.changed
- name: disable nagios alerts for this host webserver service nagios: action=disable_alerts host={{inventory_hostname}} services=dnsserver delegate_to: mon_host.example.com
--- - name: check and apply basic configuration to all hosts hosts: all roles: - common - name: check and apply configuration to group1 hosts: group1 roles: - pgsql - name: check and apply configuration to group2 hosts: group2 roles: - fooapp
βββ production # - βββ stage # stage- β βββ group_vars/ β βββ group1 # β βββ group2 # βββ host_vars/ β βββ hostname1 # β βββ hostname2 # β βββ site.yml # βββ webservers.yml # - βββ dbservers.yml # β βββ roles/ βββ common/ # β βββ tasks/ # β β βββ main.yml # - , β β # β βββ handlers/ # β β βββ main.yml # - (handlers) β βββ templates/ # - , β β βββ ntp.conf.j2 # - ntp β βββ files/ # β β βββ bar.txt # - - β β βββ foo.sh # - β βββ vars/ # β βββ main.yml # - β βββ pgsql/ # , , pgsql βββ fooapp/ # , , fooapp
--- - name: install postgresql 9.3 # playbook'a # , , vars_prompt: hosts: "Please enter hosts group name" # ( $ANSIBLE_HOSTS) username: "Please enter username for auth" # hosts: $hosts # user: $username sudo: True accelerate: true vars: app_username: 'app_user' # , app_host_ip: '192.168.0.100' # ip- , app_database_name: 'appdb' # tasks: # python-software-properties # apt. : # pkg - # state - , # update_cache - - name: check add-apt-repository apt: pkg=python-software-properties state=latest update_cache=yes # apt- postgresql # : # url - URL # state - - name: add apt key apt_key: url=http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc state=present # , - name: add apt repo apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ ${ansible_lsb.codename}-pgdg main' # - name: install pgdg-key apt: pkg=pgdg-keyring state=latest update_cache=yes # postgresql-9.3 ( ) # python-psycopg2 - postgresql_user, postgresql_db, postgresql_privs - name: install packages apt: pkg=$item state=latest with_items: - postgresql-9.3 - python-psycopg2 - python-keyczar # c LOGIN # credentials/_/postgres/_ - name: create postresql user for some app # postgres ( postgresql) sudo: yes sudo_user: postgres postgresql_user: user=${app_username} password="{{ lookup('password','example/credentials/' + inventory_hostname + '/postgres/' + app_username, length=15) }}" role_attr_flags=LOGIN # - name: create db for our app sudo: yes sudo_user: postgres action: postgresql_db name=${app_database_name} owner=${app_username} encoding='UTF8' lc_collate='en_US.UTF-8' lc_ctype='en_US.UTF-8' template='template0' state=present # , - name: add app_user password to .pg_pass file on server with our app sudo: yes sudo_user: ${app_username} delegate_to: ${app_host_ip} lineinfile: dest=/home/${app_username}/.pgpass regexp='^{{ inventory_hostname }}\:\*\:${app_database_name}\:${app_username}' line='{{ inventory_hostname }}:*:${app_database_name}:${app_username}:{{ lookup('password','example/credentials/' + inventory_hostname + '/postgres/' + app_username, length=15) }}' create=yes state=present backup=yes # pg_hba.conf , ip- - name: add entry to pg_hba.conf lineinfile: dest=/etc/postgresql/9.3/main/pg_hba.conf regexp='host ${app_database_name} ${app_username} ${app_host_ip}/32 md5' line='host ${app_database_name} ${app_username} ${app_host_ip}/32 md5' state=present # , postgresql # ansible "/ " , # playbook'a notify: - reload postgres # postgresql localhost # postgresql.conf ip- - name: add entry to postgresql lineinfile: dest=/etc/postgresql/9.3/main/postgresql.conf regexp='^listen_addresses' line="listen_addresses = '${ansible_default_ipv4.address}'" state=present # , postgresql, .. # listen_addresses postgresql notify: - restart postgres # handlers: # postgresql - name: reload postgres sudo: yes action: service name=postgresql state=reloaded # postgresql - name: restart postgres sudo: yes action: service name=postgresql state=restarted
Source: https://habr.com/ru/post/196620/
All Articles