ansible常用模块

1.ping 模块

[root@ansible ~]# ansible websrvs -m ping
172.16.62.11 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": false, 
    "ping": "pong"
}
172.16.62.12 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": false, 
    "ping": "pong"
}


2.command 模块

-默认模块,可忽略-m 选项

[root@ansible ansible]# ansible websrvs:dbsrvs:appsrvs -m  command -a 'hostname'
172.16.62.13 | CHANGED | rc=0 >>
node13

172.16.62.11 | CHANGED | rc=0 >>
node11

172.16.62.14 | CHANGED | rc=0 >>
node14

172.16.62.12 | CHANGED | rc=0 >>
node12

[root@ansible ansible]# 

3. shell 模块

  • command 不支持管道符 |
[root@ansible ansible]# ansible websrvs:dbsrvs:appsrvs -m  command -a 'useradd user1'
172.16.62.13 | CHANGED | rc=0 >>


172.16.62.11 | CHANGED | rc=0 >>


172.16.62.12 | CHANGED | rc=0 >>


172.16.62.14 | CHANGED | rc=0 >>


[root@ansible ansible]# ansible websrvs:dbsrvs:appsrvs -m  command -a 'echo 1234.com | passwd --stind user1'
172.16.62.11 | CHANGED | rc=0 >>
1234.com | passwd --stind user1

172.16.62.13 | CHANGED | rc=0 >>
1234.com | passwd --stind user1

172.16.62.14 | CHANGED | rc=0 >>
1234.com | passwd --stind user1

172.16.62.12 | CHANGED | rc=0 >>
1234.com | passwd --stind user1

[root@ansible ansible]# 




#使用shell模块
[root@ansible ansible]# ansible websrvs:dbsrvs:appsrvs -m  shell  -a 'echo 1234.com | passwd --stdin user1'
172.16.62.13 | CHANGED | rc=0 >>
Changing password for user user1.
passwd: all authentication tokens updated successfully.

172.16.62.11 | CHANGED | rc=0 >>
Changing password for user user1.
passwd: all authentication tokens updated successfully.

172.16.62.14 | CHANGED | rc=0 >>
Changing password for user user1.
passwd: all authentication tokens updated successfully.

172.16.62.12 | CHANGED | rc=0 >>
Changing password for user user1.
passwd: all authentication tokens updated successfully.

[root@ansible ansible]#


#shell支持管道、重定向、特殊符号转义
ansible testgroup -m shell -a "echo testa|grep a" #支持管道
ansible testgroup -m shell -a "echo bb >>/tmp/testansible" #支持重定向
ansible testgroup -m shell -a "cat /etc/passwd|awk -F‘:‘ ‘{print \$1}‘" #遇到特殊符号需要加入\转义,这样子ansible才能正常运行

4.script模块

[root@ansible ansible]# ansible websrvs:dbsrvs -m script -a '/data/host.sh'
172.16.62.11 | CHANGED => {
    "changed": true, 
    "rc": 0, 
    "stderr": "Shared connection to 172.16.62.11 closed.\r\n", 
    "stderr_lines": [
        "Shared connection to 172.16.62.11 closed."
    ], 
    "stdout": "node11\r\n", 
    "stdout_lines": [
        "node11"
    ]
}
172.16.62.13 | CHANGED => {
    "changed": true, 
    "rc": 0, 
    "stderr": "Shared connection to 172.16.62.13 closed.\r\n", 
    "stderr_lines": [
        "Shared connection to 172.16.62.13 closed."
    ], 
    "stdout": "node13\r\n", 
    "stdout_lines": [
        "node13"
    ]
}
172.16.62.12 | CHANGED => {
    "changed": true, 
    "rc": 0, 
    "stderr": "Shared connection to 172.16.62.12 closed.\r\n", 
    "stderr_lines": [
        "Shared connection to 172.16.62.12 closed."
    ], 
    "stdout": "node12\r\n", 
    "stdout_lines": [
        "node12"
    ]
}


5.copy模块

[root@ansible ansible]# ansible all -m copy -a "src=/data/host.sh  dest=/tmp mode=755"
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/tmp/host.sh", 
    "gid": 0, 
    "group": "root", 
    "mode": "0755", 
    "owner": "root", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 0
}
172.16.62.14 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/tmp/host.sh", 
    "gid": 0, 
    "group": "root", 
    "mode": "0755", 
    "owner": "root", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 0
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/tmp/host.sh", 
    "gid": 0, 
    "group": "root", 
    "mode": "0755", 
    "owner": "root", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 0
}
172.16.62.13 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/tmp/host.sh", 
    "gid": 0, 
    "group": "root", 
    "mode": "0755", 
    "owner": "root", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 0
}

6.file模块

[root@ansible data]# ansible  all -m file -a "path=/tmp/host.sh mode=600 owner=user1"
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 0, 
    "group": "root", 
    "mode": "0600", 
    "owner": "user1", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 1042
}
172.16.62.13 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 0, 
    "group": "root", 
    "mode": "0600", 
    "owner": "user1", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 1001
}
172.16.62.14 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 0, 
    "group": "root", 
    "mode": "0600", 
    "owner": "user1", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 1001
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 0, 
    "group": "root", 
    "mode": "0600", 
    "owner": "user1", 
    "path": "/tmp/host.sh", 
    "size": 20, 
    "state": "file", 
    "uid": 1001
}

7.fetch 模块

[root@ansible data]# ansible  all -m fetch  -a "src=/tmp/host.sh dest=/root"
172.16.62.14 | CHANGED => {
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/root/172.16.62.14/tmp/host.sh", 
    "md5sum": "bd450e7f549728e0245f26654b2ed588", 
    "remote_checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "remote_md5sum": null
}
172.16.62.12 | CHANGED => {
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/root/172.16.62.12/tmp/host.sh", 
    "md5sum": "bd450e7f549728e0245f26654b2ed588", 
    "remote_checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "remote_md5sum": null
}
172.16.62.13 | CHANGED => {
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/root/172.16.62.13/tmp/host.sh", 
    "md5sum": "bd450e7f549728e0245f26654b2ed588", 
    "remote_checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "remote_md5sum": null
}
172.16.62.11 | CHANGED => {
    "changed": true, 
    "checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "dest": "/root/172.16.62.11/tmp/host.sh", 
    "md5sum": "bd450e7f549728e0245f26654b2ed588", 
    "remote_checksum": "fa5cad79db34216ed59ab3ae31030889a31538b7", 
    "remote_md5sum": null
}

8.hostname 模块

[root@ansible data]# ansible 172.16.62.13  -m hostname -a "name=test13"
172.16.62.13 | CHANGED => {
    "ansible_facts": {
        "ansible_domain": "", 
        "ansible_fqdn": "test13", 
        "ansible_hostname": "test13", 
        "ansible_nodename": "test13", 
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "name": "test13"
}


9.cron模块

  • 创建一个同步时间的计划任务,每5分钟同步一下服务器的时间
[root@ansible data]# ansible all -m cron -a "minute='*/5' job='/usr/sbin/ntpdate 172.16.62.16 &> /dev/null' name='sync time'"
172.16.62.13 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": [
        "sync time"
    ]
}
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": [
        "sync time"
    ]
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": [
        "sync time"
    ]
}
172.16.62.14 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": [
        "sync time"
    ]
}



#验证
#Ansible: sync time
*/5 * * * * /usr/sbin/ntpdate 172.16.62.16 &> /dev/null
[root@node11 tmp]# 



#删除计划任务  state=absent
[root@ansible data]# ansible all -m cron -a "minute='*/5' job='/usr/sbin/ntpdate 172.16.62.16 &> /dev/null' name='sync time' state=absent"
172.16.62.14 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": []
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": []
}
172.16.62.13 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": []
}
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "envs": [], 
    "jobs": []
}

10.yum模块

#安装vsftpd
[root@ansible data]# ansible websrvs -m yum -a "name=vsftpd"
172.16.62.12 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": false, 
    "msg": "", 
    "rc": 0, 
    "results": [
        "vsftpd-3.0.2-27.el7.x86_64 providing vsftpd is already installed"
    ]
}
172.16.62.11 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": false, 
    "msg": "", 
    "rc": 0, 
    "results": [
        "vsftpd-3.0.2-27.el7.x86_64 providing vsftpd is already installed"
    ]
}






#查看
[root@ansible data]# ansible websrvs -m shell -a "rpm -qa | grep vsftpd"
[WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'.  If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.

172.16.62.11 | CHANGED | rc=0 >>
vsftpd-3.0.2-27.el7.x86_64

172.16.62.12 | CHANGED | rc=0 >>
vsftpd-3.0.2-27.el7.x86_64

[root@ansible data]#





#卸载vsftpd
[root@ansible data]# ansible websrvs -m yum -a "name=vsftpd state=absent"
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "changes": {
        "removed": [
            "vsftpd"
        ]
    }, 
    "msg": "", 
    "rc": 0, 
    "results": [
        "Loaded plugins: fastestmirror\nResolving Dependencies\n--> Running transaction check\n---> Package vsftpd.x86_64 0:3.0.2-27.el7 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package          Arch             Version                Repository       Size\n================================================================================\nRemoving:\n vsftpd           x86_64           3.0.2-27.el7           @base           353 k\n\nTransaction Summary\n================================================================================\nRemove  1 Package\n\nInstalled size: 353 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Erasing    : vsftpd-3.0.2-27.el7.x86_64                                   1/1 \n  Verifying  : vsftpd-3.0.2-27.el7.x86_64                                   1/1 \n\nRemoved:\n  vsftpd.x86_64 0:3.0.2-27.el7                                                  \n\nComplete!\n"
    ]
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "changes": {
        "removed": [
            "vsftpd"
        ]
    }, 
    "msg": "", 
    "rc": 0, 
    "results": [
        "Loaded plugins: fastestmirror\nResolving Dependencies\n--> Running transaction check\n---> Package vsftpd.x86_64 0:3.0.2-27.el7 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package          Arch             Version                Repository       Size\n================================================================================\nRemoving:\n vsftpd           x86_64           3.0.2-27.el7           @base           353 k\n\nTransaction Summary\n================================================================================\nRemove  1 Package\n\nInstalled size: 353 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Erasing    : vsftpd-3.0.2-27.el7.x86_64                                   1/1 \n  Verifying  : vsftpd-3.0.2-27.el7.x86_64                                   1/1 \n\nRemoved:\n  vsftpd.x86_64 0:3.0.2-27.el7                                                  \n\nComplete!\n"
    ]
}

11. service模块

[root@ansible data]# ansible websrvs -m service -a 'name=vsftpd state=started enabled=yes'


#验证

[root@node12 data]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2020-11-15 17:06:13 CST; 1min 15s ago
  Process: 3775 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 3776 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─3776 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Nov 15 17:06:13 node12 systemd[1]: Starting Vsftpd ftp daemon...
Nov 15 17:06:13 node12 systemd[1]: Started Vsftpd ftp daemon.
[root@node12 data]# systemctl is-enabled vsftpd
enabled

12. user模块

[root@ansible tmp]# ansible websrvs -m user -a 'name=user2 system=true'
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "comment": "", 
    "create_home": true, 
    "group": 995, 
    "home": "/home/user2", 
    "name": "user2", 
    "shell": "/bin/bash", 
    "state": "present", 
    "system": true, 
    "uid": 998
}
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "comment": "", 
    "create_home": true, 
    "group": 990, 
    "home": "/home/user2", 
    "name": "user2", 
    "shell": "/bin/bash", 
    "state": "present", 
    "system": true, 
    "uid": 994
}


#验证
[root@ansible tmp]# ansible websrvs -m shell -a 'id user2'
172.16.62.12 | CHANGED | rc=0 >>
uid=998(user2) gid=995(user2) groups=995(user2)

172.16.62.11 | CHANGED | rc=0 >>
uid=994(user2) gid=990(user2) groups=990(user2)

[root@ansible tmp]#



#删除
[root@ansible tmp]# ansible websrvs -m user -a 'name=user2 state=absent'
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "force": false, 
    "name": "user2", 
    "remove": false, 
    "state": "absent"
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "force": false, 
    "name": "user2", 
    "remove": false, 
    "state": "absent"
}
[root@ansible tmp]# 

13.group 模块

[root@ansible ~]# ansible websrvs -m group -a 'name=nginxtest system=yes gid=800'
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 800, 
    "name": "nginxtest", 
    "state": "present", 
    "system": true
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "gid": 800, 
    "name": "nginxtest", 
    "state": "present", 
    "system": true
}


#验证
[root@ansible ~]# ansible websrvs -a 'getent group nginxtest'
172.16.62.11 | CHANGED | rc=0 >>
nginxtest:x:800:

172.16.62.12 | CHANGED | rc=0 >>
nginxtest:x:800:





#删除group
[root@ansible ~]# ansible websrvs -m group -a 'name=nginxtest state=absent'
172.16.62.11 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "name": "nginxtest", 
    "state": "absent"
}
172.16.62.12 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": true, 
    "name": "nginxtest", 
    "state": "absent"
}
[root@ansible ~]#

14.setup模块

  • 过滤信息使用filter
过滤出指定的信息:例->ansible all -m setup -a "filter=ansible_os_family"

ansible_all_ipv4_addresses:仅显示ipv4的信息

ansible_devices:仅显示磁盘设备信息

ansible_distribution:显示是什么系统,例:centos,suse等

ansible_distribution_major_version:显示是系统主版本

ansible_distribution_version:仅显示系统版本

ansible_machine:显示系统类型,例:32位,还是64位

ansible_eth0:仅显示eth0的信息

ansible_hostname:仅显示主机名

ansible_kernel:仅显示内核版本

ansible_lvm:显示lvm相关信息

ansible_memtotal_mb:显示系统总内存

ansible_memfree_mb:显示可用系统内存

ansible_memory_mb:详细显示内存情况

ansible_swaptotal_mb:显示总的swap内存

ansible_swapfree_mb:显示swap内存的可用内存

ansible_mounts:显示系统磁盘挂载情况

ansible_processor:显示cpu个数(具体显示每个cpu的型号)

ansible_processor_vcpus:显示cpu个数(只显示总的个数)

ansible_python_version:显示python版本

#所有信息
[root@ansible ~]# ansible 172.16.62.12 -m setup
172.16.62.12 | SUCCESS => {
    "ansible_facts": {
        "ansible_all_ipv4_addresses": [
            "192.168.100.12", 
            "172.16.62.12", 
            "172.16.62.248", 
            "172.16.62.249", 
            "172.16.62.250", 
            "172.16.62.251", 
            "172.16.62.252"
        ], 
        "ansible_all_ipv6_addresses": [], 
        "ansible_apparmor": {
            "status": "disabled"
        }, 
        "ansible_architecture": "x86_64", 
        "ansible_bios_date": "04/05/2016", 
        "ansible_bios_version": "6.00", 
        "ansible_cmdline": {
            "BOOT_IMAGE": "/vmlinuz-3.10.0-1127.el7.x86_64", 
            "biosdevname": "0", 
            "crashkernel": "auto", 
            "net.ifnames": "0", 
            "quiet": true, 
            "rd.lvm.lv": "centos/swap", 
            "rhgb": true, 
            "ro": true, 
            "root": "/dev/mapper/centos-root"
        }, 
        "ansible_date_time": {
            "date": "2020-11-20", 
            "day": "20", 
            "epoch": "1605836457", 
            "hour": "09", 
            "iso8601": "2020-11-20T01:40:57Z", 
            "iso8601_basic": "20201120T094057975539", 
            "iso8601_basic_short": "20201120T094057", 
            "iso8601_micro": "2020-11-20T01:40:57.975848Z", 
            "minute": "40", 
            "month": "11", 
            "second": "57", 
            "time": "09:40:57", 
            "tz": "CST", 
            "tz_offset": "+0800", 
            "weekday": "Friday", 
            "weekday_number": "5", 
            "weeknumber": "46", 
            "year": "2020"
        }, 
        "ansible_default_ipv4": {
            "address": "172.16.62.12", 
            "alias": "eth0", 
            "broadcast": "172.16.62.255", 
            "gateway": "172.16.62.1", 
            "interface": "eth0", 
            "macaddress": "00:50:56:a0:a4:f5", 
            "mtu": 1500, 
            "netmask": "255.255.255.0", 
            "network": "172.16.62.0", 
            "type": "ether"
        }, 
        "ansible_default_ipv6": {}, 
        "ansible_device_links": {
            "ids": {
                "dm-0": [
                    "dm-name-centos-root", 
                    "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXDEmFYWIlerBokXHmkviWQ4EucvacKoLW"
                ], 
                "dm-1": [
                    "dm-name-centos-swap", 
                    "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXhRSLuaMMYwKSpQalbQgQYo3XRdd9821S"
                ], 
                "dm-2": [
                    "dm-name-centos-home", 
                    "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXB4EPfrTnhJoIMIiCQb3CYQ6U5u1Rx2Du"
                ], 
                "sda2": [
                    "lvm-pv-uuid-bDjBXH-2DH0-jIcn-4ll3-EwUm-Jthr-0ORvuA"
                ], 
                "sr0": [
                    "ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"
                ]
            }, 
            "labels": {}, 
            "masters": {
                "sda2": [
                    "dm-0", 
                    "dm-1", 
                    "dm-2"
                ]
            }, 
            "uuids": {
                "dm-0": [
                    "a3ddefa0-ef51-4326-b846-082a46205fac"
                ], 
                "dm-1": [
                    "72823cb8-e66b-41ff-868e-27d57ccf2e9e"
                ], 
                "dm-2": [
                    "1635af93-9741-4d7d-b30d-fb098f7cf68b"
                ], 
                "sda1": [
                    "986da029-4ca8-40bb-8182-5223d777adba"
                ]
            }
        }, 
        "ansible_devices": {
            "dm-0": {
                "holders": [], 
                "host": "", 
                "links": {
                    "ids": [
                        "dm-name-centos-root", 
                        "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXDEmFYWIlerBokXHmkviWQ4EucvacKoLW"
                    ], 
                    "labels": [], 
                    "masters": [], 
                    "uuids": [
                        "a3ddefa0-ef51-4326-b846-082a46205fac"
                    ]
                }, 
                "model": null, 
                "partitions": {}, 
                "removable": "0", 
                "rotational": "1", 
                "sas_address": null, 
                "sas_device_handle": null, 
                "scheduler_mode": "", 
                "sectors": "104857600", 
                "sectorsize": "512", 
                "size": "50.00 GB", 
                "support_discard": "0", 
                "vendor": null, 
                "virtual": 1
            }, 
            "dm-1": {
                "holders": [], 
                "host": "", 
                "links": {
                    "ids": [
                        "dm-name-centos-swap", 
                        "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXhRSLuaMMYwKSpQalbQgQYo3XRdd9821S"
                    ], 
                    "labels": [], 
                    "masters": [], 
                    "uuids": [
                        "72823cb8-e66b-41ff-868e-27d57ccf2e9e"
                    ]
                }, 
                "model": null, 
                "partitions": {}, 
                "removable": "0", 
                "rotational": "1", 
                "sas_address": null, 
                "sas_device_handle": null, 
                "scheduler_mode": "", 
                "sectors": "8126464", 
                "sectorsize": "512", 
                "size": "3.88 GB", 
                "support_discard": "0", 
                "vendor": null, 
                "virtual": 1
            }, 
            "dm-2": {
                "holders": [], 
                "host": "", 
                "links": {
                    "ids": [
                        "dm-name-centos-home", 
                        "dm-uuid-LVM-xoNQw3GsoNZRLDrWVKBSs94US8pQ5obXB4EPfrTnhJoIMIiCQb3CYQ6U5u1Rx2Du"
                    ], 
                    "labels": [], 
                    "masters": [], 
                    "uuids": [
                        "1635af93-9741-4d7d-b30d-fb098f7cf68b"
                    ]
                }, 
                "model": null, 
                "partitions": {}, 
                "removable": "0", 
                "rotational": "1", 
                "sas_address": null, 
                "sas_device_handle": null, 
                "scheduler_mode": "", 
                "sectors": "52674560", 
                "sectorsize": "512", 
                "size": "25.12 GB", 
                "support_discard": "0", 
                "vendor": null, 
                "virtual": 1
            }, 
            "sda": {
                "holders": [], 
                "host": "SCSI storage controller: Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)", 
                "links": {
                    "ids": [], 
                    "labels": [], 
                    "masters": [], 
                    "uuids": []
                }, 
                "model": "Virtual disk", 
                "partitions": {
                    "sda1": {
                        "holders": [], 
                        "links": {
                            "ids": [], 
                            "labels": [], 
                            "masters": [], 
                            "uuids": [
                                "986da029-4ca8-40bb-8182-5223d777adba"
                            ]
                        }, 
                        "sectors": "2097152", 
                        "sectorsize": 512, 
                        "size": "1.00 GB", 
                        "start": "2048", 
                        "uuid": "986da029-4ca8-40bb-8182-5223d777adba"
                    }, 
                    "sda2": {
                        "holders": [
                            "centos-root", 
                            "centos-swap", 
                            "centos-home"
                        ], 
                        "links": {
                            "ids": [
                                "lvm-pv-uuid-bDjBXH-2DH0-jIcn-4ll3-EwUm-Jthr-0ORvuA"
                            ], 
                            "labels": [], 
                            "masters": [
                                "dm-0", 
                                "dm-1", 
                                "dm-2"
                            ], 
                            "uuids": []
                        }, 
                        "sectors": "165672960", 
                        "sectorsize": 512, 
                        "size": "79.00 GB", 
                        "start": "2099200", 
                        "uuid": null
                    }
                }, 
                "removable": "0", 
                "rotational": "1", 
                "sas_address": null, 
                "sas_device_handle": null, 
                "scheduler_mode": "deadline", 
                "sectors": "167772160", 
                "sectorsize": "512", 
                "size": "80.00 GB", 
                "support_discard": "0", 
                "vendor": "VMware", 
                "virtual": 1
            }, 
            "sr0": {
                "holders": [], 
                "host": "IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)", 
                "links": {
                    "ids": [
                        "ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"
                    ], 
                    "labels": [], 
                    "masters": [], 
                    "uuids": []
                }, 
                "model": "VMware IDE CDR00", 
                "partitions": {}, 
                "removable": "1", 
                "rotational": "1", 
                "sas_address": null, 
                "sas_device_handle": null, 
                "scheduler_mode": "deadline", 
                "sectors": "2097151", 
                "sectorsize": "512", 
                "size": "1024.00 MB", 
                "support_discard": "0", 
                "vendor": "NECVMWar", 
                "virtual": 1
            }
        }, 
        "ansible_distribution": "CentOS", 
        "ansible_distribution_file_parsed": true, 
        "ansible_distribution_file_path": "/etc/redhat-release", 
        "ansible_distribution_file_variety": "RedHat", 
        "ansible_distribution_major_version": "7", 
        "ansible_distribution_release": "Core", 
        "ansible_distribution_version": "7.8", 
        "ansible_dns": {
            "nameservers": [
                "114.114.114.114", 
                "223.5.5.5"
            ]
        }, 
        "ansible_domain": "aliyun.com", 
        "ansible_effective_group_id": 0, 
        "ansible_effective_user_id": 0, 
        "ansible_env": {
            "HOME": "/root", 
            "LANG": "C", 
            "LC_ALL": "C", 
            "LC_NUMERIC": "C", 
            "LESSOPEN": "||/usr/bin/lesspipe.sh %s", 
            "LOGNAME": "root", 
            "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:", 
            "MAIL": "/var/mail/root", 
            "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", 
            "PWD": "/root", 
            "SHELL": "/bin/bash", 
            "SHLVL": "2", 
            "SSH_CLIENT": "172.16.62.17 48814 22", 
            "SSH_CONNECTION": "172.16.62.17 48814 172.16.62.12 22", 
            "SSH_TTY": "/dev/pts/1", 
            "TERM": "xterm", 
            "USER": "root", 
            "XDG_RUNTIME_DIR": "/run/user/0", 
            "XDG_SESSION_ID": "3645", 
            "_": "/usr/bin/python"
        }, 
        "ansible_eth0": {
            "active": true, 
            "device": "eth0", 
            "features": {
                "busy_poll": "off [fixed]", 
                "fcoe_mtu": "off [fixed]", 
                "generic_receive_offload": "on", 
                "generic_segmentation_offload": "on", 
                "highdma": "on", 
                "hw_tc_offload": "off [fixed]", 
                "l2_fwd_offload": "off [fixed]", 
                "large_receive_offload": "off", 
                "loopback": "off [fixed]", 
                "netns_local": "off [fixed]", 
                "ntuple_filters": "off [fixed]", 
                "receive_hashing": "on", 
                "rx_all": "off [fixed]", 
                "rx_checksumming": "on", 
                "rx_fcs": "off [fixed]", 
                "rx_gro_hw": "off [fixed]", 
                "rx_udp_tunnel_port_offload": "off [fixed]", 
                "rx_vlan_filter": "on [fixed]", 
                "rx_vlan_offload": "on", 
                "rx_vlan_stag_filter": "off [fixed]", 
                "rx_vlan_stag_hw_parse": "off [fixed]", 
                "scatter_gather": "on", 
                "tcp_segmentation_offload": "on", 
                "tx_checksum_fcoe_crc": "off [fixed]", 
                "tx_checksum_ip_generic": "on", 
                "tx_checksum_ipv4": "off [fixed]", 
                "tx_checksum_ipv6": "off [fixed]", 
                "tx_checksum_sctp": "off [fixed]", 
                "tx_checksumming": "on", 
                "tx_fcoe_segmentation": "off [fixed]", 
                "tx_gre_csum_segmentation": "off [fixed]", 
                "tx_gre_segmentation": "off [fixed]", 
                "tx_gso_partial": "off [fixed]", 
                "tx_gso_robust": "off [fixed]", 
                "tx_ipip_segmentation": "off [fixed]", 
                "tx_lockless": "off [fixed]", 
                "tx_nocache_copy": "off", 
                "tx_scatter_gather": "on", 
                "tx_scatter_gather_fraglist": "off [fixed]", 
                "tx_sctp_segmentation": "off [fixed]", 
                "tx_sit_segmentation": "off [fixed]", 
                "tx_tcp6_segmentation": "on", 
                "tx_tcp_ecn_segmentation": "off [fixed]", 
                "tx_tcp_mangleid_segmentation": "off", 
                "tx_tcp_segmentation": "on", 
                "tx_udp_tnl_csum_segmentation": "off [fixed]", 
                "tx_udp_tnl_segmentation": "off [fixed]", 
                "tx_vlan_offload": "on", 
                "tx_vlan_stag_hw_insert": "off [fixed]", 
                "udp_fragmentation_offload": "off [fixed]", 
                "vlan_challenged": "off [fixed]"
            }, 
            "hw_timestamp_filters": [], 
            "ipv4": {
                "address": "172.16.62.12", 
                "broadcast": "172.16.62.255", 
                "netmask": "255.255.255.0", 
                "network": "172.16.62.0"
            }, 
            "ipv4_secondaries": [
                {
                    "address": "172.16.62.248", 
                    "broadcast": "global", 
                    "netmask": "255.255.255.255", 
                    "network": "172.16.62.248"
                }, 
                {
                    "address": "172.16.62.249", 
                    "broadcast": "global", 
                    "netmask": "255.255.255.255", 
                    "network": "172.16.62.249"
                }, 
                {
                    "address": "172.16.62.250", 
                    "broadcast": "global", 
                    "netmask": "255.255.255.255", 
                    "network": "172.16.62.250"
                }, 
                {
                    "address": "172.16.62.251", 
                    "broadcast": "global", 
                    "netmask": "255.255.255.255", 
                    "network": "172.16.62.251"
                }, 
                {
                    "address": "172.16.62.252", 
                    "broadcast": "global", 
                    "netmask": "255.255.255.255", 
                    "network": "172.16.62.252"
                }
            ], 
            "macaddress": "00:50:56:a0:a4:f5", 
            "module": "vmxnet3", 
            "mtu": 1500, 
            "pciid": "0000:03:00.0", 
            "promisc": false, 
            "speed": 10000, 
            "timestamping": [
                "rx_software", 
                "software"
            ], 
            "type": "ether"
        }, 
        "ansible_eth1": {
            "active": true, 
            "device": "eth1", 
            "features": {
                "busy_poll": "off [fixed]", 
                "fcoe_mtu": "off [fixed]", 
                "generic_receive_offload": "on", 
                "generic_segmentation_offload": "on", 
                "highdma": "on", 
                "hw_tc_offload": "off [fixed]", 
                "l2_fwd_offload": "off [fixed]", 
                "large_receive_offload": "off", 
                "loopback": "off [fixed]", 
                "netns_local": "off [fixed]", 
                "ntuple_filters": "off [fixed]", 
                "receive_hashing": "on", 
                "rx_all": "off [fixed]", 
                "rx_checksumming": "on", 
                "rx_fcs": "off [fixed]", 
                "rx_gro_hw": "off [fixed]", 
                "rx_udp_tunnel_port_offload": "off [fixed]", 
                "rx_vlan_filter": "on [fixed]", 
                "rx_vlan_offload": "on", 
                "rx_vlan_stag_filter": "off [fixed]", 
                "rx_vlan_stag_hw_parse": "off [fixed]", 
                "scatter_gather": "on", 
                "tcp_segmentation_offload": "on", 
                "tx_checksum_fcoe_crc": "off [fixed]", 
                "tx_checksum_ip_generic": "on", 
                "tx_checksum_ipv4": "off [fixed]", 
                "tx_checksum_ipv6": "off [fixed]", 
                "tx_checksum_sctp": "off [fixed]", 
                "tx_checksumming": "on", 
                "tx_fcoe_segmentation": "off [fixed]", 
                "tx_gre_csum_segmentation": "off [fixed]", 
                "tx_gre_segmentation": "off [fixed]", 
                "tx_gso_partial": "off [fixed]", 
                "tx_gso_robust": "off [fixed]", 
                "tx_ipip_segmentation": "off [fixed]", 
                "tx_lockless": "off [fixed]", 
                "tx_nocache_copy": "off", 
                "tx_scatter_gather": "on", 
                "tx_scatter_gather_fraglist": "off [fixed]", 
                "tx_sctp_segmentation": "off [fixed]", 
                "tx_sit_segmentation": "off [fixed]", 
                "tx_tcp6_segmentation": "on", 
                "tx_tcp_ecn_segmentation": "off [fixed]", 
                "tx_tcp_mangleid_segmentation": "off", 
                "tx_tcp_segmentation": "on", 
                "tx_udp_tnl_csum_segmentation": "off [fixed]", 
                "tx_udp_tnl_segmentation": "off [fixed]", 
                "tx_vlan_offload": "on", 
                "tx_vlan_stag_hw_insert": "off [fixed]", 
                "udp_fragmentation_offload": "off [fixed]", 
                "vlan_challenged": "off [fixed]"
            }, 
            "hw_timestamp_filters": [], 
            "ipv4": {
                "address": "192.168.100.12", 
                "broadcast": "192.168.100.255", 
                "netmask": "255.255.255.0", 
                "network": "192.168.100.0"
            }, 
            "macaddress": "00:50:56:a0:dd:03", 
            "module": "vmxnet3", 
            "mtu": 1500, 
            "pciid": "0000:0b:00.0", 
            "promisc": false, 
            "speed": 10000, 
            "timestamping": [
                "rx_software", 
                "software"
            ], 
            "type": "ether"
        }, 
        "ansible_fibre_channel_wwn": [], 
        "ansible_fips": false, 
        "ansible_form_factor": "Other", 
        "ansible_fqdn": "web81.aliyun.com", 
        "ansible_hostname": "web81", 
        "ansible_hostnqn": "", 
        "ansible_interfaces": [
            "lo", 
            "eth1", 
            "eth0"
        ], 
        "ansible_is_chroot": false, 
        "ansible_iscsi_iqn": "", 
        "ansible_kernel": "3.10.0-1127.el7.x86_64", 
        "ansible_kernel_version": "#1 SMP Tue Mar 31 23:36:51 UTC 2020", 
        "ansible_lo": {
            "active": true, 
            "device": "lo", 
            "features": {
                "busy_poll": "off [fixed]", 
                "fcoe_mtu": "off [fixed]", 
                "generic_receive_offload": "on", 
                "generic_segmentation_offload": "on", 
                "highdma": "on [fixed]", 
                "hw_tc_offload": "off [fixed]", 
                "l2_fwd_offload": "off [fixed]", 
                "large_receive_offload": "off [fixed]", 
                "loopback": "on [fixed]", 
                "netns_local": "on [fixed]", 
                "ntuple_filters": "off [fixed]", 
                "receive_hashing": "off [fixed]", 
                "rx_all": "off [fixed]", 
                "rx_checksumming": "on [fixed]", 
                "rx_fcs": "off [fixed]", 
                "rx_gro_hw": "off [fixed]", 
                "rx_udp_tunnel_port_offload": "off [fixed]", 
                "rx_vlan_filter": "off [fixed]", 
                "rx_vlan_offload": "off [fixed]", 
                "rx_vlan_stag_filter": "off [fixed]", 
                "rx_vlan_stag_hw_parse": "off [fixed]", 
                "scatter_gather": "on", 
                "tcp_segmentation_offload": "on", 
                "tx_checksum_fcoe_crc": "off [fixed]", 
                "tx_checksum_ip_generic": "on [fixed]", 
                "tx_checksum_ipv4": "off [fixed]", 
                "tx_checksum_ipv6": "off [fixed]", 
                "tx_checksum_sctp": "on [fixed]", 
                "tx_checksumming": "on", 
                "tx_fcoe_segmentation": "off [fixed]", 
                "tx_gre_csum_segmentation": "off [fixed]", 
                "tx_gre_segmentation": "off [fixed]", 
                "tx_gso_partial": "off [fixed]", 
                "tx_gso_robust": "off [fixed]", 
                "tx_ipip_segmentation": "off [fixed]", 
                "tx_lockless": "on [fixed]", 
                "tx_nocache_copy": "off [fixed]", 
                "tx_scatter_gather": "on [fixed]", 
                "tx_scatter_gather_fraglist": "on [fixed]", 
                "tx_sctp_segmentation": "on", 
                "tx_sit_segmentation": "off [fixed]", 
                "tx_tcp6_segmentation": "on", 
                "tx_tcp_ecn_segmentation": "on", 
                "tx_tcp_mangleid_segmentation": "on", 
                "tx_tcp_segmentation": "on", 
                "tx_udp_tnl_csum_segmentation": "off [fixed]", 
                "tx_udp_tnl_segmentation": "off [fixed]", 
                "tx_vlan_offload": "off [fixed]", 
                "tx_vlan_stag_hw_insert": "off [fixed]", 
                "udp_fragmentation_offload": "on", 
                "vlan_challenged": "on [fixed]"
            }, 
            "hw_timestamp_filters": [], 
            "ipv4": {
                "address": "127.0.0.1", 
                "broadcast": "host", 
                "netmask": "255.0.0.0", 
                "network": "127.0.0.0"
            }, 
            "mtu": 65536, 
            "promisc": false, 
            "timestamping": [
                "rx_software", 
                "software"
            ], 
            "type": "loopback"
        }, 
        "ansible_local": {}, 
        "ansible_lsb": {}, 
        "ansible_lvm": {
            "lvs": {
                "home": {
                    "size_g": "25.12", 
                    "vg": "centos"
                }, 
                "root": {
                    "size_g": "50.00", 
                    "vg": "centos"
                }, 
                "swap": {
                    "size_g": "3.88", 
                    "vg": "centos"
                }
            }, 
            "pvs": {
                "/dev/sda2": {
                    "free_g": "0.00", 
                    "size_g": "79.00", 
                    "vg": "centos"
                }
            }, 
            "vgs": {
                "centos": {
                    "free_g": "0.00", 
                    "num_lvs": "3", 
                    "num_pvs": "1", 
                    "size_g": "79.00"
                }
            }
        }, 
        "ansible_machine": "x86_64", 
        "ansible_machine_id": "833d53a2e06944eca3691266d2b69fea", 
        "ansible_memfree_mb": 2388, 
        "ansible_memory_mb": {
            "nocache": {
                "free": 3489, 
                "used": 300
            }, 
            "real": {
                "free": 2388, 
                "total": 3789, 
                "used": 1401
            }, 
            "swap": {
                "cached": 0, 
                "free": 3967, 
                "total": 3967, 
                "used": 0
            }
        }, 
        "ansible_memtotal_mb": 3789, 
        "ansible_mounts": [
            {
                "block_available": 221243, 
                "block_size": 4096, 
                "block_total": 259584, 
                "block_used": 38341, 
                "device": "/dev/sda1", 
                "fstype": "xfs", 
                "inode_available": 523961, 
                "inode_total": 524288, 
                "inode_used": 327, 
                "mount": "/boot", 
                "options": "rw,relatime,attr2,inode64,noquota", 
                "size_available": 906211328, 
                "size_total": 1063256064, 
                "uuid": "986da029-4ca8-40bb-8182-5223d777adba"
            }, 
            {
                "block_available": 12487221, 
                "block_size": 4096, 
                "block_total": 13100800, 
                "block_used": 613579, 
                "device": "/dev/mapper/centos-root", 
                "fstype": "xfs", 
                "inode_available": 26179496, 
                "inode_total": 26214400, 
                "inode_used": 34904, 
                "mount": "/", 
                "options": "rw,relatime,attr2,inode64,noquota", 
                "size_available": 51147657216, 
                "size_total": 53660876800, 
                "uuid": "a3ddefa0-ef51-4326-b846-082a46205fac"
            }, 
            {
                "block_available": 6572842, 
                "block_size": 4096, 
                "block_total": 6581105, 
                "block_used": 8263, 
                "device": "/dev/mapper/centos-home", 
                "fstype": "xfs", 
                "inode_available": 13168628, 
                "inode_total": 13168640, 
                "inode_used": 12, 
                "mount": "/home", 
                "options": "rw,relatime,attr2,inode64,noquota", 
                "size_available": 26922360832, 
                "size_total": 26956206080, 
                "uuid": "1635af93-9741-4d7d-b30d-fb098f7cf68b"
            }
        ], 
        "ansible_nodename": "web81.aliyun.com", 
        "ansible_os_family": "RedHat", 
        "ansible_pkg_mgr": "yum", 
        "ansible_proc_cmdline": {
            "BOOT_IMAGE": "/vmlinuz-3.10.0-1127.el7.x86_64", 
            "biosdevname": "0", 
            "crashkernel": "auto", 
            "net.ifnames": "0", 
            "quiet": true, 
            "rd.lvm.lv": [
                "centos/root", 
                "centos/swap"
            ], 
            "rhgb": true, 
            "ro": true, 
            "root": "/dev/mapper/centos-root"
        }, 
        "ansible_processor": [
            "0", 
            "GenuineIntel", 
            "Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz", 
            "1", 
            "GenuineIntel", 
            "Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz", 
            "2", 
            "GenuineIntel", 
            "Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz", 
            "3", 
            "GenuineIntel", 
            "Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz"
        ], 
        "ansible_processor_cores": 1, 
        "ansible_processor_count": 4, 
        "ansible_processor_threads_per_core": 1, 
        "ansible_processor_vcpus": 4, 
        "ansible_product_name": "VMware Virtual Platform", 
        "ansible_product_serial": "VMware-42 20 71 90 cf e2 bb 1e-d8 70 2f cc f5 0f d8 1b", 
        "ansible_product_uuid": "42207190-CFE2-BB1E-D870-2FCCF50FD81B", 
        "ansible_product_version": "None", 
        "ansible_python": {
            "executable": "/usr/bin/python", 
            "has_sslcontext": true, 
            "type": "CPython", 
            "version": {
                "major": 2, 
                "micro": 5, 
                "minor": 7, 
                "releaselevel": "final", 
                "serial": 0
            }, 
            "version_info": [
                2, 
                7, 
                5, 
                "final", 
                0
            ]
        }, 
        "ansible_python_version": "2.7.5", 
        "ansible_real_group_id": 0, 
        "ansible_real_user_id": 0, 
        "ansible_selinux": {
            "status": "disabled"
        }, 
        "ansible_selinux_python_present": true, 
        "ansible_service_mgr": "systemd", 
        "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOwI6wPal4uCeRKTBq16iu4m++Zd4H5RjSjVDzGsSdpuWFNz/8yhOd128/e0PMqCVmjODSQST1k0ZNwHZIIl3mI=", 
        "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGp/hAWWAqWTp2u9hUXNe54kyl5PcSQc8KvOry+yX5Oi", 
        "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC9rXo+/LV6i8SHDD6UhLtchYZnFZxoo6m3Zgr6nVSRDt0Yx+Gk+7xXE+qSfIEFxSvVhXoUcEEnJn553F5tDRxo+K2NjXI9//MpUVi3gNivhzWMfLDTP9tect+utmhxwI0x6Dk+HnTrJBbbq6Yv1Tidg+F3GyrLVsebdAfkVNQ4KUt4z6KCq1Lb2YX01IDb8KVaIWqUexpIPPR0qlXCq5hHyPMXIBT0SaCm5hHCEUPRsfZ0q9lfLggO5jmYPoXvlaemorGsxe+CXQ86K21oiL3iYoY9iwIeRX7yA3ffLL0MA2Ew3FzFPZPLxrc+d+yizzbHFzLRsmymV7np67jd0IDR", 
        "ansible_swapfree_mb": 3967, 
        "ansible_swaptotal_mb": 3967, 
        "ansible_system": "Linux", 
        "ansible_system_capabilities": [
            "cap_chown", 
            "cap_dac_override", 
            "cap_dac_read_search", 
            "cap_fowner", 
            "cap_fsetid", 
            "cap_kill", 
            "cap_setgid", 
            "cap_setuid", 
            "cap_setpcap", 
            "cap_linux_immutable", 
            "cap_net_bind_service", 
            "cap_net_broadcast", 
            "cap_net_admin", 
            "cap_net_raw", 
            "cap_ipc_lock", 
            "cap_ipc_owner", 
            "cap_sys_module", 
            "cap_sys_rawio", 
            "cap_sys_chroot", 
            "cap_sys_ptrace", 
            "cap_sys_pacct", 
            "cap_sys_admin", 
            "cap_sys_boot", 
            "cap_sys_nice", 
            "cap_sys_resource", 
            "cap_sys_time", 
            "cap_sys_tty_config", 
            "cap_mknod", 
            "cap_lease", 
            "cap_audit_write", 
            "cap_audit_control", 
            "cap_setfcap", 
            "cap_mac_override", 
            "cap_mac_admin", 
            "cap_syslog", 
            "35", 
            "36+ep"
        ], 
        "ansible_system_capabilities_enforced": "True", 
        "ansible_system_vendor": "VMware, Inc.", 
        "ansible_uptime_seconds": 12590718, 
        "ansible_user_dir": "/root", 
        "ansible_user_gecos": "root", 
        "ansible_user_gid": 0, 
        "ansible_user_id": "root", 
        "ansible_user_shell": "/bin/bash", 
        "ansible_user_uid": 0, 
        "ansible_userspace_architecture": "x86_64", 
        "ansible_userspace_bits": "64", 
        "ansible_virtualization_role": "guest", 
        "ansible_virtualization_type": "VMware", 
        "discovered_interpreter_python": "/usr/bin/python", 
        "gather_subset": [
            "all"
        ], 
        "module_setup": true
    }, 
    "changed": false
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值