Ansible で AIX の fact は何が取得されるか
Ansible で AIX の fact (システムから検出される変数) は何が取得されるのだろうと気になったので確認しました。
参考:AnsibleDoc 変数の使用: システムから検出される変数: Fact (ファクト)
環境
・AIX:
AIX 7200-03-02-1846 (VIOS 環境下のLPARです)
python 2.7.12
(hostname : test_001)
・Ansible 実行環境:
Mac
Ansible バージョン 2.9.9
準備
・ansible.cfg
ansible.cfg
[defaults]
inventory = ./inventory
remote_user = root
ask_pass = false
become = true
private_key_file = ~/.ssh/id_rsa
・inventory
[test]
test_001
確認
setup モジュールを実行します。
一部の環境固有値はマスク(XXXXX)しています。
$ ansible test -m setup
[WARNING]: Platform aix on host test_001 is using the discovered Python interpreter at /usr/bin/python, but future installation
of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
test_001 | SUCCESS => {
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"XXX.YY.XX.XX"
],
"ansible_all_ipv6_addresses": [
"::1%1"
],
"ansible_apparmor": {
"status": "disabled"
},
"ansible_architecture": "chrp",
"ansible_date_time": {
"date": "2020-09-21",
"day": "21",
"epoch": "1600678083",
"hour": "17",
"iso8601": "2020-09-21T08:48:03Z",
"iso8601_basic": "20200921T174803444443",
"iso8601_basic_short": "20200921T174803",
"iso8601_micro": "2020-09-21T08:48:03.444675Z",
"minute": "48",
"month": "09",
"second": "03",
"time": "17:48:03",
"tz": "JST",
"tz_offset": "JST",
"weekday": "Monday",
"weekday_number": "1",
"weeknumber": "38",
"year": "2020"
},
"ansible_default_ipv4": {
"address": "XXX.YY..XX.XX",
"broadcast": "XXX.YY.255.255",
"device": "en0",
"flags": [
"UP",
"BROADCAST",
"NOTRAILERS",
"RUNNING",
"SIMPLEX",
"MULTICAST",
"GROUPRT",
"64BIT",
"CHECKSUM_OFFLOAD(ACTIVE)",
"LARGESEND",
"CHAIN"
],
"gateway": "YY.XX.YY.XX",
"interface": "en0",
"macaddress": "fa:xx:b6:xx:8d:xx",
"mtu": "1500",
"netmask": "255.255.0.0",
"network": "XXX.YY.0.0",
"type": "ether"
},
"ansible_default_ipv6": {},
"ansible_devices": {
"L2cache0": {
"attributes": {
"size": "0"
},
"state": "Available",
"type": "L2 Cache"
},
"cache0": {
"attributes": {
"auto_grab_ssd": "no",
"cache_enable": "1",
"cache_engine": "cengine0",
"cfg_persist": "1"
},
"state": "Defined",
"type": "SSD Cache virtual device"
},
"cd0": {
"attributes": {
"prevent_eject": "yes"
},
"state": "Defined",
"type": "Virtual SCSI Optical Served by VIO Server"
},
"cengine0": {
"attributes": {
"cache_per_tgt": "1",
"cepath": "/usr/ccs/lib/libcehandler.a",
"max_partition": "1",
"max_pool": "1",
"tgt_per_cache": "unlimited"
},
"state": "Defined",
"type": "SSD Cache engine"
},
"cluster0": {
"attributes": {
"clrpvid": "00000000000000000000000000000000",
"clvdisk": "00000000-0000-0000-0000-000000000000",
"configure": "yes",
"node_uuid": "6f1dxxxxxx0-xxxx-xxxx-fa28xxxxxxx20"
},
"state": "Available",
"type": "Cluster Node"
},
"en0": {
"attributes": {
"alias4": "IPv4",
"alias6": "IPv6",
"arp": "on",
"authority": "Authorized",
"broadcast": "Broadcast",
"monitor": "off",
"mtu": "1500",
"mtu_bypass": "on",
"netaddr": "XXX.YY..XX.XX",
"netaddr6": "IPv6",
"netmask": "255.255.0.0",
"prefixlen": "Prefix",
"remmtu": "576",
"rfc1323": "Enable/Disable",
"security": "none",
"state": "up",
"tcp_mssdflt": "Set",
"tcp_nodelay": "Enable/Disable",
"tcp_recvspace": "Set",
"tcp_sendspace": "Set",
"thread": "off"
},
"state": "Available",
"type": "Standard Ethernet Network Interface"
},
"ent0": {
"attributes": {
"alt_addr": "0x000000000000",
"buf_mode": "max_min",
"chksum_offload": "yes",
"copy_buffs": "32",
"copy_bytes": "65536",
"desired_mapmem": "0",
"ipv6_offload": "no",
"max_buf_control": "64",
"max_buf_huge": "64",
"max_buf_large": "64",
"max_buf_medium": "256",
"max_buf_small": "2048",
"max_buf_tiny": "2048",
"min_buf_control": "24",
"min_buf_huge": "24",
"min_buf_large": "24",
"min_buf_medium": "128",
"min_buf_small": "512",
"min_buf_tiny": "512",
"poll_uplink": "no",
"poll_uplink_int": "1000",
"trace_debug": "no",
"use_alt_addr": "no"
},
"state": "Available",
"type": "Virtual I/O Ethernet Adapter (l-lan)"
},
"et0": {
"attributes": {
"alias4": "IPv4",
"alias6": "IPv6",
"arp": "on",
"authority": "Authorized",
"broadcast": "Broadcast",
"mtu": "1492",
"netaddr": "Internet",
"netaddr6": "IPv6",
"netmask": "Subnet",
"prefixlen": "Prefix",
"remmtu": "576",
"rfc1323": "Enable/Disable",
"security": "none",
"state": "down",
"tcp_mssdflt": "Set",
"tcp_nodelay": "Enable/Disable",
"tcp_recvspace": "Set",
"tcp_sendspace": "Set"
},
"state": "Defined",
"type": "IEEE 802.3 Ethernet Network Interface"
},
"fcs0": {
"attributes": {
"intr_priority": "3",
"lg_term_dma": "0x800000",
"max_xfer_size": "0x100000",
"num_cmd_elems": "200",
"sw_fc_class": "2"
},
"state": "Available",
"type": "C3-T1 Virtual Fibre Channel Client Adapter"
},
"fcs1": {
"attributes": {
"intr_priority": "3",
"lg_term_dma": "0x800000",
"max_xfer_size": "0x100000",
"num_cmd_elems": "200",
"sw_fc_class": "2"
},
"state": "Available",
"type": "C4-T1 Virtual Fibre Channel Client Adapter"
},
"fcs2": {
"attributes": {
"intr_priority": "3",
"lg_term_dma": "0x800000",
"max_xfer_size": "0x100000",
"num_cmd_elems": "200",
"sw_fc_class": "2"
},
"state": "Available",
"type": "C5-T1 Virtual Fibre Channel Client Adapter"
},
"fcs3": {
"attributes": {
"intr_priority": "3",
"lg_term_dma": "0x800000",
"max_xfer_size": "0x100000",
"num_cmd_elems": "200",
"sw_fc_class": "2"
},
"state": "Available",
"type": "C6-T1 Virtual Fibre Channel Client Adapter"
},
"fscsi0": {
"attributes": {
"attach": "switch",
"dyntrk": "yes",
"fc_err_recov": "fast_fail",
"scsi_id": "0x3122b",
"sw_fc_class": "3"
},
"state": "Available",
"type": "C3-T1-01 FC SCSI I/O Controller Protocol Device"
},
"fscsi1": {
"attributes": {
"attach": "switch",
"dyntrk": "yes",
"fc_err_recov": "fast_fail",
"scsi_id": "0x40768",
"sw_fc_class": "3"
},
"state": "Available",
"type": "C4-T1-01 FC SCSI I/O Controller Protocol Device"
},
"fscsi2": {
"attributes": {
"attach": "switch",
"dyntrk": "yes",
"fc_err_recov": "fast_fail",
"scsi_id": "0x4063b",
"sw_fc_class": "3"
},
"state": "Available",
"type": "C5-T1-01 FC SCSI I/O Controller Protocol Device"
},
"fscsi3": {
"attributes": {
"attach": "switch",
"dyntrk": "yes",
"fc_err_recov": "fast_fail",
"scsi_id": "0x3105c",
"sw_fc_class": "3"
},
"state": "Available",
"type": "C6-T1-01 FC SCSI I/O Controller Protocol Device"
},
"fslv00": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "/testvol",
"lvserial_id": "00xxxxxxxx0000000xxxxxxx846.2",
"relocatable": "y",
"size": "512",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"fslv01": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "/export/lpp_source",
"lvserial_id": "00xxxxxxxx4c000xxxxxxxx10.13",
"relocatable": "y",
"size": "21",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"fslv02": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "/export/spot",
"lvserial_id": "00fxxxxxxx0016exxxxxxx0.14",
"relocatable": "y",
"size": "11",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd1": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/home",
"lvserial_id": "00f9xxxxxxxx0000xxxxxxx10.8",
"relocatable": "y",
"size": "1",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd10opt": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/opt",
"lvserial_id": "00f9xxxxxx00000xxxxxxf2710.9",
"relocatable": "y",
"size": "35",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd11admin": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/admin",
"lvserial_id": "00xxxxxxx5000xxxxx000001xxxxxxx10.10",
"relocatable": "y",
"size": "4",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd2": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/usr",
"lvserial_id": "00xxxxxx0004c00xxxxxx16e5dxxxxxxx10.5",
"relocatable": "y",
"size": "77",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd3": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/tmp",
"lvserial_id": "00f98xxxxx000000xxxxxx0f2710.7",
"relocatable": "y",
"size": "3",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd4": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/",
"lvserial_id": "00f98xxxxxx000000016xxxxxxxx0.4",
"relocatable": "y",
"size": "32",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd5": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "e",
"label": "primary_bootlv",
"lvserial_id": "00xxxxxx04c0000000xxxxxx10.1",
"relocatable": "n",
"size": "1",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "boot",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd6": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "None",
"lvserial_id": "00fxxxxxxx004c00xxxxxxxxx10.2",
"relocatable": "y",
"size": "16",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "paging",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd8": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "None",
"lvserial_id": "00xxxxxxxxx0000000xxxxxxxx710.3",
"relocatable": "y",
"size": "1",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2log",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hd9var": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "c",
"label": "/var",
"lvserial_id": "00fxxxxxxc00000xxxxxx10.6",
"relocatable": "y",
"size": "6",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"hdisk0": {
"attributes": {
"PCM": "PCM/friend/fcpother",
"PR_key_value": "none",
"algorithm": "fail_over",
"clr_q": "no",
"dist_err_pcnt": "0",
"dist_tw_width": "50",
"hcheck_cmd": "test_unit_rdy",
"hcheck_interval": "60",
"hcheck_mode": "nonactive",
"location": "Location",
"lun_id": "0x0",
"lun_reset_spt": "yes",
"max_coalesce": "0x40000",
"max_retry_delay": "60",
"max_transfer": "0x80000",
"node_name": "0x50xxxxxxxxxxxx4cb",
"pvid": "0XXXXXXXX000XXXXXXXX0000",
"q_err": "yes",
"q_type": "simple",
"queue_depth": "20",
"reassign_to": "120",
"reserve_policy": "single_path",
"rw_timeout": "30",
"scsi_id": "0x30100",
"start_timeout": "60",
"timeout_policy": "fail_path",
"unique_id": "XXXXXXXXXXXXXXXXXXx000000XXXXXXXXXXXX14503IBMfcp",
"ww_name": "0XXXXX768021XXXXXb"
},
"state": "Available",
"type": "C3-T1-01 MPIO IBM 2076 FC Disk"
},
"hdisk1": {
"attributes": {
"PCM": "PCM/friend/fcpother",
"PR_key_value": "none",
"algorithm": "fail_over",
"clr_q": "no",
"dist_err_pcnt": "0",
"dist_tw_width": "50",
"hcheck_cmd": "test_unit_rdy",
"hcheck_interval": "60",
"hcheck_mode": "nonactive",
"location": "Location",
"lun_id": "0x1000000000000",
"lun_reset_spt": "yes",
"max_coalesce": "0x40000",
"max_retry_delay": "60",
"max_transfer": "0x80000",
"node_name": "0x5XXXXXXXXXXa4XXX",
"pvid": "0XXXXXXXXd67290000XXXXXx00000",
"q_err": "yes",
"q_type": "simple",
"queue_depth": "20",
"reassign_to": "120",
"reserve_policy": "single_path",
"rw_timeout": "30",
"scsi_id": "0x30100",
"start_timeout": "60",
"timeout_policy": "fail_path",
"unique_id": "3XXXXXXXXXXXXXXDXXXXXXXXx09170421XXXXXXX3IBMfcp",
"ww_name": "0xXXXXXX680210aXXX"
},
"state": "Available",
"type": "C3-T1-01 MPIO IBM 2076 FC Disk"
},
"inet0": {
"attributes": {
"authm": "65536",
"bootup_option": "no",
"gateway": "Gateway",
"hostname": "test_001",
"rout6": "IPv6",
"route": "net,-hopcount,0,,0,YY.XX.YY.XX"
},
"state": "Available",
"type": "Internet Network Extension"
},
"iocp0": {
"attributes": {
"autoconfig": "defined"
},
"state": "Defined",
"type": "I/O Completion Ports"
},
"iscsi0": {
"attributes": {
"disc_filename": "/etc/iscsi/targets",
"disc_policy": "file",
"initiator_name": "iqn.localhost.hostid.7xxxxx01",
"isns_srvnames": "auto",
"isns_srvports": "iSNS",
"isw_err_recov": "delayed_fail",
"max_targets": "16",
"max_xfer_size": "0x80000",
"num_cmd_elems": "200"
},
"state": "Available",
"type": "iSCSI Protocol Device"
},
"lg_dumplv": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "None",
"lvserial_id": "00fxxxxxxxx004c0xxxxxxxx2710.11",
"relocatable": "y",
"size": "32",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "sysdump",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"livedump": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "/var/adm/ras/livedump",
"lvserial_id": "00xxxxxxxxx00016exxxxxxxx10.12",
"relocatable": "y",
"size": "8",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"lo0": {
"attributes": {
"mtu": "16896",
"netaddr": "127.0.0.1",
"netaddr6": "::1",
"netmask": "Subnet",
"prefixlen": "IPv6",
"rfc1323": "Enable/Disable",
"state": "up",
"tcp_mssdflt": "Set",
"tcp_nodelay": "Enable/Disable",
"tcp_recvspace": "Set",
"tcp_sendspace": "Set"
},
"state": "Available",
"type": "Loopback Network Interface"
},
"loglv00": {
"attributes": {
"copies": "1",
"inter": "m",
"intra": "m",
"label": "None",
"lvserial_id": "00xxxxxxxxx000001xxxxxxxx46.1",
"relocatable": "y",
"size": "1",
"strictness": "y",
"stripe_size": "Stripe",
"stripe_width": "Striping",
"type": "jfs2log",
"upperbound": "32"
},
"state": "Defined",
"type": "Logical volume"
},
"lvdd": {
"attributes": {},
"state": "Available",
"type": "LVM Device Driver"
},
"mem0": {
"attributes": {
"ent_mem_cap": "I/O",
"goodsize": "2048",
"mem_exp_factor": "Memory",
"size": "2048",
"var_mem_weight": "Variable"
},
"state": "Available",
"type": "Memory"
},
"pkcs11": {
"attributes": {
"comp_trace": "no",
"io_threads": "8",
"proc_heap_sz": "8",
"trc_adm": "no",
"trc_clic": "no",
"trc_context": "no",
"trc_dd": "no",
"trc_hw": "no",
"trc_io": "no",
"trc_k_klib": "no",
"trc_k_ulib": "no",
"trc_malloc": "no",
"trc_meta": "no",
"trc_mmap": "no",
"trc_obj": "no",
"trc_req": "no",
"trc_sess": "no",
"trc_slot": "no",
"trc_token": "no",
"trc_u_lib": "no",
"trc_util": "no",
"y4_max_req": "16"
},
"state": "Available",
"type": "ACF/PKCS#11 Device"
},
"proc0": {
"attributes": {
"frequency": "3891000000",
"smt_enabled": "true",
"smt_threads": "8",
"state": "enable",
"type": "PowerPC_POWER8"
},
"state": "Available",
"type": "00-00 Processor"
},
"pty0": {
"attributes": {
"ATTnum": "256",
"BSDnum": "16",
"autoconfig": "available",
"csmap": "sbcs"
},
"state": "Available",
"type": "Asynchronous Pseudo-Terminal"
},
"rcm0": {
"attributes": {},
"state": "Defined",
"type": "Rendering Context Manager Subsystem"
},
"rootvg": {
"attributes": {
"auto_on": "y",
"cache_pbuf_cnt": "0",
"conc_auto_on": "n",
"conc_capable": "n",
"gbl_pbufs_ppv": "0",
"gbl_pbufs_pvg": "0",
"timestamp": "5eec791011a4cbc6",
"vg_pbufs_ppv": "0",
"vgserial_id": "00xxxxxxxx0000000xxxxxxx10",
"workQ_size": "256"
},
"state": "Defined",
"type": "Volume group"
},
"sfw0": {
"attributes": {
"enable_sas": "no",
"vltag": "3358"
},
"state": "Available",
"type": "Storage Framework Module"
},
"sfwcomm0": {
"attributes": {},
"state": "Available",
"type": "C3-T1-01-FF Fibre Channel Storage Framework Comm"
},
"sfwcomm1": {
"attributes": {},
"state": "Available",
"type": "C4-T1-01-FF Fibre Channel Storage Framework Comm"
},
"sfwcomm2": {
"attributes": {},
"state": "Available",
"type": "C5-T1-01-FF Fibre Channel Storage Framework Comm"
},
"sfwcomm3": {
"attributes": {},
"state": "Available",
"type": "C6-T1-01-FF Fibre Channel Storage Framework Comm"
},
"sys0": {
"attributes": {
"SW_dist_intr": "false",
"autorestart": "true",
"boottype": "disk",
"capacity_inc": "0.01",
"capped": "false",
"chown_restrict": "true",
"clouddev": "1",
"conslogin": "enable",
"cpuguard": "enable",
"dedicated": "false",
"enhanced_RBAC": "true",
"ent_capacity": "0.30",
"ex_intr_virt": "false",
"frequency": "1600000000",
"fullcore": "false",
"fwversion": "IBM,FW860.70",
"ghostdev": "0",
"id_to_partition": "0X8xxxxx00xxxxxxxxxx",
"id_to_system": "0X8xxxxxxx681xxxx000",
"iostat": "false",
"keylock": "normal",
"log_pg_dealloc": "true",
"max_capacity": "0.30",
"max_logname": "9",
"maxbuf": "20",
"maxmbuf": "0",
"maxpout": "8193",
"maxuproc": "128",
"min_capacity": "0.30",
"minpout": "4096",
"modelname": "IBM,8286-42A",
"ncargs": "256",
"nfs4_acl_compat": "secure",
"ngroups_allowed": "128",
"os_uuid": "5xxxxxxc39d-41bd-xxxxx9-e1xxxxxxxxx8a02c35",
"partition_uuid": "xxxxxxx-8874-4883-xxxxx-xxxxxxxxxxxxxx",
"pmuaccess": "all",
"pre430core": "false",
"pre520tune": "disable",
"realmem": "2097152",
"rtasversion": "1",
"secure_boot": "Policy_0(Disabled)",
"sed_config": "select",
"systemid": "IBM,028xxxxV",
"variable_weight": "128"
},
"state": "Available",
"type": "System Object"
},
"sysplanar0": {
"attributes": {},
"state": "Available",
"type": "System Planar"
},
"testvol": {
"attributes": {
"auto_on": "y",
"cache_pbuf_cnt": "0",
"conc_auto_on": "n",
"conc_capable": "n",
"gbl_pbufs_ppv": "0",
"gbl_pbufs_pvg": "0",
"timestamp": "5e0b3a1b145da811",
"vg_pbufs_ppv": "0",
"vgserial_id": "00f98xxxxxxx00000016exxxxx46",
"workQ_size": "256"
},
"state": "Defined",
"type": "Volume group"
},
"vio0": {
"attributes": {
"bus_id": "0x90000340"
},
"state": "Available",
"type": "Virtual I/O Bus"
},
"vsa0": {
"attributes": {
"desired_mapmem": "I/O"
},
"state": "Available",
"type": "LPAR Virtual Serial Adapter"
},
"vscsi0": {
"attributes": {
"rw_timeout": "300",
"vscsi_err_recov": "delayed_fail",
"vscsi_path_to": "0"
},
"state": "Available",
"type": "Virtual SCSI Client Adapter"
},
"vty0": {
"attributes": {
"autoconfig": "available",
"bpc": "8",
"csmap": "sbcs",
"discard": "^o",
"dsusp": "^y",
"eof": "^d",
"eol": "^@",
"eol2": "^?",
"erase": "^h",
"flow_disp": "xon",
"imap": "none",
"intr": "^c",
"kill": "^u",
"lnext": "^v",
"logger": "LOGGER",
"login": "disable",
"logmodes": "hupcl,cread,echoe,cs8",
"modules": "ldterm",
"omap": "none",
"open_disp": "dtropen",
"parity": "none",
"quit": "^\\",
"reprint": "^r",
"runmodes": "hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icanon,echo,echoe,echok,echoctl,echoke,imaxbel,iexten",
"speed": "19200",
"start": "^q",
"stop": "^s",
"stops": "1",
"susp": "^z",
"term": "vt220",
"timeout": "0",
"werase": "^w"
},
"state": "Available",
"type": "Asynchronous Terminal"
}
},
"ansible_distribution": "AIX",
"ansible_distribution_major_version": "7",
"ansible_distribution_release": "2",
"ansible_distribution_version": "7.2",
"ansible_dns": {},
"ansible_domain": "",
"ansible_effective_group_id": 0,
"ansible_effective_user_id": 0,
"ansible_en0": {
"device": "en0",
"flags": [
"UP",
"BROADCAST",
"NOTRAILERS",
"RUNNING",
"SIMPLEX",
"MULTICAST",
"GROUPRT",
"64BIT",
"CHECKSUM_OFFLOAD(ACTIVE)",
"LARGESEND",
"CHAIN"
],
"ipv4": [
{
"address": "XXX.YY.XX.XX",
"broadcast": "XXX.YY.255.255",
"netmask": "255.255.0.0",
"network": "XXX.YY.0.0"
}
],
"ipv6": [],
"macaddress": "fa:xxx:b6:xx:8d:xx",
"mtu": "1500",
"type": "ether"
},
"ansible_env": {
"AUTHSTATE": "compat",
"CLCMD_PASSTHRU": "1",
"HOME": "/",
"LANG": "Ja_JP",
"LC_MESSAGES": "C@lft",
"LC__FASTMSG": "true",
"LOCPATH": "/usr/lib/nls/loc",
"LOGIN": "root",
"LOGNAME": "root",
"MAIL": "/var/spool/mail/root",
"NLSPATH": "/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%l.%c/%N:/usr/lib/nls/msg/%l.%c/%N.cat",
"ODMDIR": "/etc/objrepos",
"PATH": "/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java7_64/jre/bin:/usr/java7_64/bin",
"PWD": "/",
"SHELL": "/usr/bin/ksh",
"SSH_CLIENT": "XXX.YY.YYY.YY 39249 22",
"SSH_CONNECTION": "XXX.YY.YYY.YY 39249 XXX.YY..XX.XX 22",
"SSH_TTY": "/dev/pts/0",
"TERM": "vt100",
"TZ": "Japan",
"USER": "root",
"_": "/usr/bin/python"
},
"ansible_fibre_channel_wwn": [
"CxxxxxxD840xxxxxx6",
"C0507608xxxxxxxx98",
"C0xxxxxxx1D8xxxxxA",
"C0xxxxx840xxxxxxxxx"
],
"ansible_fips": false,
"ansible_firmware_version": "FW860.70",
"ansible_fqdn": "test_001",
"ansible_hostname": "test_001",
"ansible_hostnqn": "",
"ansible_interfaces": [
"en0",
"lo0"
],
"ansible_is_chroot": false,
"ansible_iscsi_iqn": "iqn.localhost.hostid.7xxxx0001",
"ansible_kernel": "2",
"ansible_kernel_version": "7",
"ansible_lo0": {
"device": "lo0",
"flags": [
"UP",
"BROADCAST",
"LOOPBACK",
"RUNNING",
"SIMPLEX",
"MULTICAST",
"GROUPRT",
"64BIT",
"LARGESEND",
"CHAIN"
],
"ipv4": [
{
"address": "127.0.0.1",
"broadcast": "127.255.255.255",
"netmask": "255.0.0.0",
"network": "127.0.0.0"
}
],
"ipv6": [
{
"address": "::1%1",
"prefix": "64"
}
],
"macaddress": "unknown",
"mtu": "16896",
"type": "unknown"
},
"ansible_local": {},
"ansible_lpar_info": "15 test_001",
"ansible_lsb": {},
"ansible_machine": "00xxxxxxxC00",
"ansible_memfree_mb": 684,
"ansible_memtotal_mb": 2048,
"ansible_mounts": [
{
"block_available": 156068,
"block_size": 4096,
"block_total": 262144,
"block_used": 106076,
"device": "/dev/hd4",
"fstype": "jfs2",
"inode_available": 144924,
"inode_total": 159879,
"inode_used": 14955,
"mount": "/",
"options": "rw,log=/dev/hd8",
"size_available": 639254528,
"size_total": 1073741824,
"time": "Jun 19 17:36"
},
{
"block_available": 61620,
"block_size": 4096,
"block_total": 630784,
"block_used": 569164,
"device": "/dev/hd2",
"fstype": "jfs2",
"inode_available": 66977,
"inode_total": 115541,
"inode_used": 48564,
"mount": "/usr",
"options": "rw,log=/dev/hd8",
"size_available": 252395520,
"size_total": 2583691264,
"time": "Jun 19 17:36"
},
{
"block_available": 28695,
"block_size": 4096,
"block_total": 49152,
"block_used": 20457,
"device": "/dev/hd9var",
"fstype": "jfs2",
"inode_available": 26097,
"inode_total": 27234,
"inode_used": 1137,
"mount": "/var",
"options": "rw,log=/dev/hd8",
"size_available": 117534720,
"size_total": 201326592,
"time": "Jun 19 17:36"
},
{
"block_available": 23725,
"block_size": 4096,
"block_total": 24576,
"block_used": 851,
"device": "/dev/hd3",
"fstype": "jfs2",
"inode_available": 22156,
"inode_total": 22240,
"inode_used": 84,
"mount": "/tmp",
"options": "rw,log=/dev/hd8",
"size_available": 97177600,
"size_total": 100663296,
"time": "Jun 19 17:36"
},
{
"block_available": 8097,
"block_size": 4096,
"block_total": 8192,
"block_used": 95,
"device": "/dev/hd1",
"fstype": "jfs2",
"inode_available": 7282,
"inode_total": 7293,
"inode_used": 11,
"mount": "/home",
"options": "rw,log=/dev/hd8",
"size_available": 33165312,
"size_total": 33554432,
"time": "Jun 19 17:36"
},
{
"block_available": 32673,
"block_size": 4096,
"block_total": 32768,
"block_used": 95,
"device": "/dev/hd11admin",
"fstype": "jfs2",
"inode_available": 29133,
"inode_total": 29138,
"inode_used": 5,
"mount": "/admin",
"options": "rw,log=/dev/hd8",
"size_available": 133828608,
"size_total": 134217728,
"time": "Jun 19 17:36"
},
{
"block_available": 0,
"block_size": 1024,
"block_total": 4294967295,
"block_used": 4294967295,
"device": "/proc",
"fstype": "procfs",
"inode_available": 0,
"inode_total": 0,
"inode_used": 0,
"mount": "/proc",
"options": "rw",
"size_available": 0,
"size_total": 4398046510080,
"time": "Jun 19 17:36"
},
{
"block_available": 194443,
"block_size": 4096,
"block_total": 286720,
"block_used": 92277,
"device": "/dev/hd10opt",
"fstype": "jfs2",
"inode_available": 178899,
"inode_total": 190502,
"inode_used": 11603,
"mount": "/opt",
"options": "rw,log=/dev/hd8",
"size_available": 796438528,
"size_total": 1174405120,
"time": "Jun 19 17:36"
},
{
"block_available": 65444,
"block_size": 4096,
"block_total": 65536,
"block_used": 92,
"device": "/dev/livedump",
"fstype": "jfs2",
"inode_available": 58200,
"inode_total": 58204,
"inode_used": 4,
"mount": "/var/adm/ras/livedump",
"options": "rw,log=/dev/hd8",
"size_available": 268058624,
"size_total": 268435456,
"time": "Jun 19 17:36"
},
{
"block_available": 6155528,
"block_size": 4096,
"block_total": 16777216,
"block_used": 10621688,
"device": "/dev/fslv00",
"fstype": "jfs2",
"inode_available": 5471846,
"inode_total": 5482460,
"inode_used": 10614,
"mount": "/testvol",
"options": "rw,log=/dev/loglv00",
"size_available": 25213042688,
"size_total": 68719476736,
"time": "Jun 19 17:36"
},
{
"block_available": 171923,
"block_size": 4096,
"block_total": 172032,
"block_used": 109,
"device": "/dev/fslv01",
"fstype": "jfs2",
"inode_available": 152848,
"inode_total": 152852,
"inode_used": 4,
"mount": "/export/lpp_source",
"options": "rw,log=/dev/hd8",
"size_available": 704196608,
"size_total": 704643072,
"time": "Jun 19 17:36"
},
{
"block_available": 90016,
"block_size": 4096,
"block_total": 90112,
"block_used": 96,
"device": "/dev/fslv02",
"fstype": "jfs2",
"inode_available": 80042,
"inode_total": 80046,
"inode_used": 4,
"mount": "/export/spot",
"options": "rw,log=/dev/hd8",
"size_available": 368705536,
"size_total": 369098752,
"time": "Jun 19 17:36"
}
],
"ansible_nodename": "test_001",
"ansible_os_family": "AIX",
"ansible_pkg_mgr": "yum",
"ansible_processor": "PowerPC_POWER8",
"ansible_processor_cores": 8,
"ansible_processor_count": 1,
"ansible_product_name": "IBM,8286-42A",
"ansible_product_serial": "8XXXXXV",
"ansible_python": {
"executable": "/usr/bin/python",
"has_sslcontext": true,
"type": "CPython",
"version": {
"major": 2,
"micro": 12,
"minor": 7,
"releaselevel": "final",
"serial": 0
},
"version_info": [
2,
7,
12,
"final",
0
]
},
"ansible_python_version": "2.7.12",
"ansible_real_group_id": 0,
"ansible_real_user_id": 0,
"ansible_selinux": {
"status": "Missing selinux Python library"
},
"ansible_selinux_python_present": false,
"ansible_service_mgr": "src",
"ansible_ssh_host_key_dsa_public": "AAAAB3NzaxxxxxxxxxTllLFa2/KhTG4c7VmQvvuevuOxykKEfxie7vkn/q8jc6hHRR5ZxDFxxxxxxxxxxxxxxxxxGO+oJWc9hFs2oxxxxxxkaIww=",
"ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHxxxxxxxxxxxxxxx9hhIWqQrt9sRWr68o2xNragN/QDHoX+oCxxxxxT44RqevVxmnl3S8+y7CkQ9iAsL/Fxxogoxxxxxxy+sK61",
"ansible_swapfree_mb": 501,
"ansible_swaptotal_mb": 512,
"ansible_system": "AIX",
"ansible_user_dir": "/",
"ansible_user_gecos": "",
"ansible_user_gid": 0,
"ansible_user_id": "root",
"ansible_user_shell": "/usr/bin/ksh",
"ansible_user_uid": 0,
"ansible_userspace_bits": "32",
"ansible_vgs": {
"rootvg": [
{
"free_pps": "391",
"pp_size": "32 megabyte(s)",
"pv_name": "hdisk0",
"pv_state": "active",
"total_pps": "639"
}
],
"testvol": [
{
"free_pps": "126",
"pp_size": "128 megabyte(s)",
"pv_name": "hdisk1",
"pv_state": "active",
"total_pps": "639"
}
]
},
"ansible_virtualization_role": "",
"ansible_virtualization_type": "",
"discovered_interpreter_python": "/usr/bin/python",
"gather_subset": [
"all"
],
"module_setup": true
},
"changed": false
}
コマンド一つでかなりの情報が取れることがわかりました。
(この結果がOS設定です、以上。みたいにOS設計書の代わりになったら楽だなと思いました...)
以上です。
Author And Source
この問題について(Ansible で AIX の fact は何が取得されるか), 我々は、より多くの情報をここで見つけました https://qiita.com/c_u/items/6f59928749ed5c671dfb著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .