Skip to content

Instantly share code, notes, and snippets.

@base10
Created May 21, 2013 20:39
Show Gist options
  • Save base10/5623049 to your computer and use it in GitHub Desktop.
Save base10/5623049 to your computer and use it in GitHub Desktop.
Ansible setup module differences between Ubuntu 12.04 LTS and FreeBSD 8.0
# ansible appservers -m setup -i playbooks/ansible_hosts -u vagrant
{
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"10.0.2.15",
"172.16.2.12"
],
"ansible_all_ipv6_addresses": [],
"ansible_architecture": "amd64",
"ansible_date_time": {
"date": "2013-05-21",
"day": "21",
"epoch": "1369167624",
"hour": "16",
"iso8601": "2013-05-21T20:20:24Z",
"iso8601_micro": "2013-05-21T20:20:24.462165Z",
"minute": "20",
"month": "05",
"second": "24",
"time": "16:20:24",
"tz": "EDT",
"year": "2013"
},
"ansible_default_ipv4": {
"address": "10.0.2.15",
"broadcast": "10.0.2.255",
"device": "em0",
"flags": [
"UP",
"BROADCAST",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"interface": "em0",
"macaddress": "08:00:27:c7:b6:76",
"media": "Ethernet",
"media_options": [
"full-duplex"
],
"media_select": "autoselect",
"media_type": "1000baseT",
"mtu": "0",
"netmask": "255.255.255.0",
"network": "10.0.2.0",
"options": [
"RXCSUM",
"TXCSUM",
"VLAN_MTU",
"VLAN_HWTAGGING",
"VLAN_HWCSUM"
],
"status": "active",
"type": "unknown"
},
"ansible_default_ipv6": {},
"ansible_devices": {
"acd0": [],
"acd1": [],
"ad4": [
"ad4s1f"
]
},
"ansible_distribution": "NA",
"ansible_distribution_release": "NA",
"ansible_distribution_version": "NA",
"ansible_domain": "redacted",
"ansible_em0": {
"device": "em0",
"flags": [
"UP",
"BROADCAST",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"ipv4": [
{
"address": "10.0.2.15",
"broadcast": "10.0.2.255",
"netmask": "255.255.255.0",
"network": "10.0.2.0"
}
],
"ipv6": [],
"macaddress": "08:00:27:c7:b6:76",
"media": "Ethernet",
"media_options": [
"full-duplex"
],
"media_select": "autoselect",
"media_type": "1000baseT",
"mtu": "0",
"options": [
"RXCSUM",
"TXCSUM",
"VLAN_MTU",
"VLAN_HWTAGGING",
"VLAN_HWCSUM"
],
"status": "active",
"type": "unknown"
},
"ansible_em1": {
"device": "em1",
"flags": [
"UP",
"BROADCAST",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"ipv4": [
{
"address": "172.16.2.12",
"broadcast": "172.16.2.255",
"netmask": "255.255.255.0",
"network": "172.16.2.0"
}
],
"ipv6": [],
"macaddress": "08:00:27:d5:ec:17",
"media": "Ethernet",
"media_options": [
"full-duplex"
],
"media_select": "autoselect",
"media_type": "1000baseT",
"mtu": "0",
"options": [
"RXCSUM",
"TXCSUM",
"VLAN_MTU",
"VLAN_HWTAGGING",
"VLAN_HWCSUM"
],
"status": "active",
"type": "unknown"
},
"ansible_fqdn": "redacted",
"ansible_hostname": "app-class",
"ansible_interfaces": [
"vboxnet0",
"lo0",
"em1",
"em0"
],
"ansible_kernel": "8.0-RELEASE-p2",
"ansible_lo0": {
"device": "lo0",
"flags": [
"UP",
"LOOPBACK",
"RUNNING",
"MULTICAST"
],
"ipv4": [
{
"address": "127.0.0.1",
"broadcast": "127.255.255.255",
"netmask": "255.0.0.0",
"network": "127.0.0.0"
}
],
"ipv6": [
{
"address": "fe80::1%lo0",
"prefix": "64",
"scope": "0x3"
},
{
"address": "::1",
"prefix": "128"
}
],
"macaddress": "unknown",
"mtu": "0",
"options": [
"RXCSUM",
"TXCSUM"
],
"type": "unknown"
},
"ansible_machine": "amd64",
"ansible_memfree_mb": 660,
"ansible_memtotal_mb": 731,
"ansible_mounts": [
{
"device": "/dev/label/rootfs0",
"fstype": "ufs",
"mount": "/",
"options": "rw,noatime"
},
{
"device": "/dev/label/swap0",
"fstype": "swap",
"mount": "none",
"options": "sw"
},
{
"device": "/dev/label/var0",
"fstype": "ufs",
"mount": "/var",
"options": "rw,noatime"
},
{
"device": "/dev/label/tmp0",
"fstype": "ufs",
"mount": "/tmp",
"options": "rw,noatime"
},
{
"device": "/dev/label/usr0",
"fstype": "ufs",
"mount": "/usr",
"options": "rw,noatime"
}
],
"ansible_os_family": "NA",
"ansible_pkg_mgr": "unknown",
"ansible_processor": [
"Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz (2288.44-MHz K8-class CPU)"
],
"ansible_processor_count": "1",
"ansible_python_version": "2.6.4",
"ansible_selinux": false,
"ansible_ssh_host_key_dsa_public": "redacted",
"ansible_ssh_host_key_rsa_public": "redacted",
"ansible_swapfree_mb": "1499",
"ansible_swaptotal_mb": "1499",
"ansible_system": "FreeBSD",
"ansible_user_id": "vagrant",
"ansible_vboxnet0": {
"device": "vboxnet0",
"flags": [
"BROADCAST",
"SIMPLEX",
"MULTICAST"
],
"ipv4": [],
"ipv6": [],
"macaddress": "0a:00:27:00:00:00",
"mtu": "0",
"type": "unknown"
}
},
"changed": false,
"verbose_override": true
}
# ansible dbservers -m setup -i playbooks/ansible_hosts
{
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"10.0.2.15",
"172.16.2.10"
],
"ansible_all_ipv6_addresses": [
"fe80::a00:27ff:fe34:1b62",
"fe80::a00:27ff:fe92:82ad"
],
"ansible_architecture": "x86_64",
"ansible_bios_date": "12/01/2006",
"ansible_bios_version": "VirtualBox",
"ansible_cmdline": {
"BOOT_IMAGE": "/vmlinuz-3.5.0-23-generic",
"quiet": true,
"ro": true,
"root": "/dev/mapper/core--ubuntu--12-root"
},
"ansible_date_time": {
"date": "2013-05-21",
"day": "21",
"epoch": "1369166804",
"hour": "20",
"iso8601": "2013-05-21T20:06:44Z",
"iso8601_micro": "2013-05-21T20:06:44.916976Z",
"minute": "06",
"month": "05",
"second": "44",
"time": "20:06:44",
"tz": "UTC",
"year": "2013"
},
"ansible_default_ipv4": {
"address": "10.0.2.15",
"alias": "eth0",
"gateway": "10.0.2.2",
"interface": "eth0",
"macaddress": "08:00:27:34:1b:62",
"mtu": 1500,
"netmask": "255.255.255.0",
"network": "10.0.2.0",
"type": "ether"
},
"ansible_default_ipv6": {},
"ansible_devices": {
"sda": {
"holders": [],
"host": "",
"model": "VBOX HARDDISK",
"partitions": {
"sda1": {
"sectors": "497664",
"sectorsize": 512,
"size": "243.00 MB",
"start": "2048"
},
"sda2": {
"sectors": "2",
"sectorsize": 512,
"size": "1.00 KB",
"start": "501758"
},
"sda5": {
"sectors": "20262912",
"sectorsize": 512,
"size": "9.66 GB",
"start": "501760"
}
},
"removable": "0",
"rotational": "1",
"scheduler_mode": "deadline",
"sectors": "20766720",
"sectorsize": "512",
"size": "9.90 GB",
"support_discard": "0",
"vendor": "ATA"
},
"sr0": {
"holders": [],
"host": "",
"model": "CD-ROM",
"partitions": {},
"removable": "1",
"rotational": "1",
"scheduler_mode": "deadline",
"sectors": "2097151",
"sectorsize": "512",
"size": "1024.00 MB",
"support_discard": "0",
"vendor": "VBOX"
},
"sr1": {
"holders": [],
"host": "",
"model": "CD-ROM",
"partitions": {},
"removable": "1",
"rotational": "1",
"scheduler_mode": "deadline",
"sectors": "2097151",
"sectorsize": "512",
"size": "1024.00 MB",
"support_discard": "0",
"vendor": "VBOX"
}
},
"ansible_distribution": "Ubuntu",
"ansible_distribution_release": "precise",
"ansible_distribution_version": "12.04",
"ansible_domain": "redacted",
"ansible_eth0": {
"active": true,
"device": "eth0",
"ipv4": {
"address": "10.0.2.15",
"netmask": "255.255.255.0",
"network": "10.0.2.0"
},
"ipv6": [
{
"address": "fe80::a00:27ff:fe34:1b62",
"prefix": "64",
"scope": "link"
}
],
"macaddress": "08:00:27:34:1b:62",
"module": "e1000",
"mtu": 1500,
"type": "ether"
},
"ansible_eth1": {
"active": true,
"device": "eth1",
"ipv4": {
"address": "172.16.2.10",
"netmask": "255.255.255.0",
"network": "172.16.2.0"
},
"ipv6": [
{
"address": "fe80::a00:27ff:fe92:82ad",
"prefix": "64",
"scope": "link"
}
],
"macaddress": "08:00:27:92:82:ad",
"module": "e1000",
"mtu": 1500,
"type": "ether"
},
"ansible_form_factor": "Other",
"ansible_fqdn": "redacted",
"ansible_hostname": "database",
"ansible_interfaces": [
"lo",
"eth1",
"eth0"
],
"ansible_kernel": "3.5.0-23-generic",
"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.2 LTS",
"id": "Ubuntu",
"major_release": "12",
"release": "12.04"
},
"ansible_machine": "x86_64",
"ansible_memfree_mb": 18,
"ansible_memtotal_mb": 491,
"ansible_mounts": [
{
"device": "/dev/mapper/core--ubuntu--12-root",
"fstype": "ext4",
"mount": "/",
"options": "rw,errors=remount-ro"
},
{
"device": "/dev/sda1",
"fstype": "ext2",
"mount": "/boot",
"options": "rw"
}
],
"ansible_os_family": "Debian",
"ansible_pkg_mgr": "apt",
"ansible_processor": [
"Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz"
],
"ansible_processor_cores": "NA",
"ansible_processor_count": 1,
"ansible_product_name": "VirtualBox",
"ansible_product_serial": "NA",
"ansible_product_uuid": "NA",
"ansible_product_version": "1.2",
"ansible_python_version": "2.7.3",
"ansible_selinux": false,
"ansible_ssh_host_key_dsa_public": "redacted",
"ansible_ssh_host_key_rsa_public": "redacted",
"ansible_swapfree_mb": 509,
"ansible_swaptotal_mb": 511,
"ansible_system": "Linux",
"ansible_system_vendor": "innotek GmbH",
"ansible_user_id": "nathan",
"ansible_virtualization_role": "guest",
"ansible_virtualization_type": "virtualbox"
},
"changed": false,
"verbose_override": true
},
"ansible_swapfree_mb": 509,
"ansible_swaptotal_mb": 511,
"ansible_system": "Linux",
"ansible_system_vendor": "innotek GmbH",
"ansible_user_id": "nathan",
"ansible_virtualization_role": "guest",
"ansible_virtualization_type": "virtualbox"
},
"changed": false,
"verbose_override": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment