Bo's Oracle Station

查看: 1150|回复: 0

inventory清单里面包含的主机变量(人为定的):

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-11-28 20:59:54 | 显示全部楼层 |阅读模式
  1. [dev]
  2. servera

  3. [test]
  4. serverb

  5. [prod]
  6. serverc
  7. serverd

  8. [balancers]
  9. serverb

  10. [webservers:children]
  11. prod
复制代码
  1. #!/bin/sh
  2. ansible localhost -m debug -a 'var=hostvars' --connection=local
复制代码
localhost | SUCCESS => {
    "hostvars": {
        "servera": {
            "ansible_check_mode": false,
            "ansible_diff_mode": false,
            "ansible_facts": {},
            "ansible_forks": 5,
            "ansible_inventory_sources": [
                "/home/student/ansible/inventory"
            ],
            "ansible_playbook_python": "/usr/libexec/platform-python",
            "ansible_verbosity": 0,
            "ansible_version": {
                "full": "2.8.0",
                "major": 2,
                "minor": 8,
                "revision": 0,
                "string": "2.8.0"
            },
            "group_names": [
                "othergroup"
            ],
            "groups": {
                "all": [
                    "servera",
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "balancers": [
                    "serverb"
                ],
                "dbgroup": [
                    "serverb"
                ],
                "othergroup": [
                    "servera"
                ],
                "prod": [
                    "serverc",
                    "serverd"
                ],
                "srvgroup": [
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "ungrouped": [],
                "webgroup": [
                    "serverc",
                    "serverd"
                ]
            },
            "inventory_dir": "/home/student/ansible",
            "inventory_file": "/home/student/ansible/inventory",
            "inventory_hostname": "servera",
            "inventory_hostname_short": "servera",
            "omit": "__omit_place_holder__85bd87af5f725a3f253330bf81b335ba59d20bb7",
            "playbook_dir": "/home/student/ansible"
        },
        "serverb": {
            "ansible_check_mode": false,
            "ansible_diff_mode": false,
            "ansible_facts": {},
            "ansible_forks": 5,
            "ansible_inventory_sources": [
                "/home/student/ansible/inventory"
            ],
            "ansible_playbook_python": "/usr/libexec/platform-python",
            "ansible_verbosity": 0,
            "ansible_version": {
                "full": "2.8.0",
                "major": 2,
                "minor": 8,
                "revision": 0,
                "string": "2.8.0"
            },
            "group_names": [
                "balancers",
                "dbgroup",
                "srvgroup"
            ],
            "groups": {
                "all": [
                    "servera",
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "balancers": [
                    "serverb"
                ],
                "dbgroup": [
                    "serverb"
                ],
                "othergroup": [
                    "servera"
                ],
                "prod": [
                    "serverc",
                    "serverd"
                ],
                "srvgroup": [
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "ungrouped": [],
                "webgroup": [
                    "serverc",
                    "serverd"
                ]
            },
            "inventory_dir": "/home/student/ansible",
            "inventory_file": "/home/student/ansible/inventory",
            "inventory_hostname": "serverb",
            "inventory_hostname_short": "serverb",
            "omit": "__omit_place_holder__85bd87af5f725a3f253330bf81b335ba59d20bb7",
            "playbook_dir": "/home/student/ansible",
            "timesync_ntp_provider": "chrony",
            "timesync_ntp_servers": [
                {
                    "hostname": "classroom.example.com",
                    "iburst": true
                }
            ],
            "timezone": "Asia/Shanghai"
        },
        "serverc": {
            "ansible_check_mode": false,
            "ansible_diff_mode": false,
            "ansible_facts": {},
            "ansible_forks": 5,
            "ansible_inventory_sources": [
                "/home/student/ansible/inventory"
            ],
            "ansible_playbook_python": "/usr/libexec/platform-python",
            "ansible_verbosity": 0,
            "ansible_version": {
                "full": "2.8.0",
                "major": 2,
                "minor": 8,
                "revision": 0,
                "string": "2.8.0"
            },
            "group_names": [
                "prod",
                "srvgroup",
                "webgroup"
            ],
            "groups": {
                "all": [
                    "servera",
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "balancers": [
                    "serverb"
                ],
                "dbgroup": [
                    "serverb"
                ],
                "othergroup": [
                    "servera"
                ],
                "prod": [
                    "serverc",
                    "serverd"
                ],
                "srvgroup": [
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "ungrouped": [],
                "webgroup": [
                    "serverc",
                    "serverd"
                ]
            },
            "inventory_dir": "/home/student/ansible",
            "inventory_file": "/home/student/ansible/inventory",
            "inventory_hostname": "serverc",
            "inventory_hostname_short": "serverc",
            "omit": "__omit_place_holder__85bd87af5f725a3f253330bf81b335ba59d20bb7",
            "playbook_dir": "/home/student/ansible",
            "timesync_ntp_provider": "chrony",
            "timesync_ntp_servers": [
                {
                    "hostname": "classroom.example.com",
                    "iburst": true
                }
            ],
            "timezone": "Asia/Shanghai"
        },
        "serverd": {
            "ansible_check_mode": false,
            "ansible_diff_mode": false,
            "ansible_facts": {},
            "ansible_forks": 5,
            "ansible_inventory_sources": [
                "/home/student/ansible/inventory"
            ],
            "ansible_playbook_python": "/usr/libexec/platform-python",
            "ansible_verbosity": 0,
            "ansible_version": {
                "full": "2.8.0",
                "major": 2,
                "minor": 8,
                "revision": 0,
                "string": "2.8.0"
            },
            "group_names": [
                "prod",
                "srvgroup",
                "webgroup"
            ],
            "groups": {
                "all": [
                    "servera",
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "balancers": [
                    "serverb"
                ],
                "dbgroup": [
                    "serverb"
                ],
                "othergroup": [
                    "servera"
                ],
                "prod": [
                    "serverc",
                    "serverd"
                ],
                "srvgroup": [
                    "serverb",
                    "serverc",
                    "serverd"
                ],
                "ungrouped": [],
                "webgroup": [
                    "serverc",
                    "serverd"
                ]
            },
            "inventory_dir": "/home/student/ansible",
            "inventory_file": "/home/student/ansible/inventory",
            "inventory_hostname": "serverd",
            "inventory_hostname_short": "serverd",
            "omit": "__omit_place_holder__85bd87af5f725a3f253330bf81b335ba59d20bb7",
            "playbook_dir": "/home/student/ansible",
            "timesync_ntp_provider": "chrony",
            "timesync_ntp_servers": [
                {
                    "hostname": "classroom.example.com",
                    "iburst": true
                }
            ],
            "timezone": "Asia/Shanghai"
        }
    }
}
[student@workstation ansible]$ ansible localhost -m debug -a 'var=hostvars' --connection=local




  1. <font color="Green">---
  2. - name: Test hostvars
  3.   hosts: localhost
  4.   connection: local
  5.   tasks:
  6.   - name: Test hostvars
  7.     debug:
  8.       msg: |
  9.        dev group contains: "{{ groups['dev'] }}"
  10.        servera details: "{{ hostvars['servera'] }}"
  11.        servera details items: "{{ hostvars['servera']['inventory_hostname'] }}"
  12. </font>
复制代码


[student@workstation ansible]$ ansible-playbook  testhostvars.yml

PLAY [Test hostvars] ***************************************************************************************

TASK [Gathering Facts] *************************************************************************************
ok: [localhost]

TASK [Test hostvars] ***************************************************************************************
ok: [localhost] => {
    "msg": "dev group contains: \"['servera']\"\nservera details: \"{'inventory_file': '/home/student/ansible/inventory', 'inventory_dir': '/home/student/ansible', 'inventory_hostname': 'servera', 'inventory_hostname_short': 'servera', 'group_names': ['dev'], 'ansible_facts': {}, 'playbook_dir': '/home/student/ansible', 'ansible_playbook_python': '/usr/libexec/platform-python', 'groups': {'all': ['servera', 'serverb', 'serverc', 'serverd'], 'ungrouped': [], 'dev': ['servera'], 'test': ['serverb'], 'prod': ['serverc', 'serverd'], 'balancers': ['serverb'], 'webservers': ['serverc', 'serverd']}, 'omit': '__omit_place_holder__662c4401b399bf1a76c9b32e59706dbee8632706', 'ansible_version': {'string': '2.8.0', 'full': '2.8.0', 'major': 2, 'minor': 8, 'revision': 0}, 'ansible_check_mode': False, 'ansible_diff_mode': False, 'ansible_forks': 5, 'ansible_inventory_sources': ('/home/student/ansible/inventory',), 'ansible_skip_tags': (), 'ansible_run_tags': ('all',), 'ansible_verbosity': 0}\"\nservera details items: \"servera\"\n"
}

PLAY RECAP *************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   



这么一来,ansible.cfg / inventory这些文件里的配置,就变成活的可以引用的值,这样就可以作分镜头过滤。


-----------------------------------------------------

换一种写法:
  1. <font color="Green">---
  2. - name: Test hostvars
  3.   hosts: localhost
  4.   connection: local
  5.   tasks:
  6.   - name: Test hostvars
  7.     debug:
  8.       msg: |
  9.        dev group contains: "{{ groups.dev }}"
  10.        servera details: "{{ hostvars.servera }}"
  11.        servera details items: "{{ hostvars.servera.inventory_hostname }}"
  12. </font>
复制代码
就像ansible_facts.hostname可以写成ansible_hostname“去头”一样,hostvars.servera.group_names写成group_names(直接在servera上取值)




主机变量如果想看一些实时活的东西,那么,请在受管主机上运行:
  1. <font color="Green">---
  2. - name: Test hostvars
  3.   hosts: servera
  4.   connection: local
  5.   tasks:
  6.   - name: Test hostvars
  7.     debug:
  8.       msg: |
  9.        dev group contains: "{{ groups.dev }}"
  10.        servera details: "{{ hostvars.servera }}"
  11.        servera details items: "{{ hostvars.servera.inventory_hostname }}"
  12. </font>
复制代码



[student@workstation ansible]$ ansible-playbook  testhostvars.yml

PLAY [Test hostvars] ***************************************************************************************

TASK [Gathering Facts] *************************************************************************************
ok: [servera]

TASK [Test hostvars] ***************************************************************************************
ok: [servera] => {
    "msg": "dev group contains: \"['servera']\"\nservera details: \"{'inventory_file': '/home/student/ansible/inventory', 'inventory_dir': '/home/student/ansible', 'inventory_hostname': 'servera', 'inventory_hostname_short': 'servera', 'group_names': ['dev'], 'ansible_facts': {'cmdline': {'BOOT_IMAGE': '(hd0,msdos1)/vmlinuz-4.18.0-80.el8.x86_64', 'root': '/dev/mapper/rhel-root', 'ro': True, 'crashkernel': 'auto', 'resume': 'UUID=225c4168-b783-4eb3-9d7d-223c552c15fd', 'rd.lvm.lv': 'rhel/root', 'rhgb': True, 'quiet': True}, 'proc_cmdline': {'BOOT_IMAGE': '(hd0,msdos1)/vmlinuz-4.18.0-80.el8.x86_64', 'root': '/dev/mapper/rhel-root', 'ro': True, 'crashkernel': 'auto', 'resume': 'UUID=225c4168-b783-4eb3-9d7d-223c552c15fd', 'rd.lvm.lv': 'rhel/root', 'rhgb': True, 'quiet': True}, 'is_chroot': False, 'user_id': 'root', 'user_uid': 0, 'user_gid': 0, 'user_gecos': 'root', 'user_dir': '/root', 'user_shell': '/bin/bash', 'real_user_id': 0, 'effective_user_id': 0, 'real_group_id': 0, 'effective_group_id': 0, 'distribution': 'RedHat', 'distribution_release': 'Ootpa', 'distribution_version': '8.0', 'distribution_major_version': '8', 'distribution_file_path': '/etc/redhat-release', 'distribution_file_variety': 'RedHat', 'distribution_file_parsed': True, 'distribution_file_search_string': 'Red Hat', 'os_family': 'RedHat', 'system': 'Linux', 'kernel': '4.18.0-80.el8.x86_64', 'machine': 'x86_64', 'python_version': '3.6.8', 'fqdn': 'workstation.lab.example.com', 'hostname': 'workstation', 'nodename': 'workstation.lab.example.com', 'domain': 'lab.example.com', 'userspace_bits': '64', 'architecture': 'x86_64', 'userspace_architecture': 'x86_64', 'machine_id': '1909efcead5b4f77b3e5a95a58d5ceac', 'ssh_host_key_rsa_public': 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDRoqUCOdleNH0YJPQ56IdnJFjF15uHBKkaG+IgWFaQfSpFq65elQeAUSHySFyaHa9p4G2mwkosMJ9KVxknN0AbZC0UNcNkijQa80DV3G+pM8k/KttAnJofLNJyj/JcndqtQz0b5a1rUhMYgDksTBZc0icLVuwRVJQFBo018RI7UY/qTyNLAzaQMpQLijnKg9Nt+lAd3wS6b++Tp7l/t6P66oAGc7yZ9V+e9hSNbbm9ZEpobu0K81oECLO8L3n/Gnhl88f11zHYCK/zrYrDWdpbcfkLHQ4f59eRa/2QBmIVcM/re8rIKpmCM9ABk/2jzPV+E+q8fXMT3vbL9ufiNiS/', 'ssh_host_key_ecdsa_public': 'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMaYt5DXXTxtT/qhIJe44sdJvx9JlC9uElEINvWHtoDncMnwOUGeI4jlMRV0QEjc2D/ouiTYHggAbN1BXxe5nrc=', 'ssh_host_key_ed25519_public': 'AAAAC3NzaC1lZDI1NTE5AAAAIAW7ndnON62LUS6KSvQ2jyUbetFu8eGog4wx7vfuW5QH', 'date_time': {'year': '2020', 'month': '11', 'weekday': 'Saturday', 'weekday_number': '6', 'weeknumber': '47', 'day': '28', 'hour': '21', 'minute': '15', 'second': '56', 'epoch': '1606569356', 'date': '2020-11-28', 'time': '21:15:56', 'iso8601_micro': '2020-11-28T13:15:56.298931Z', 'iso8601': '2020-11-28T13:15:56Z', 'iso8601_basic': '20201128T211556298751', 'iso8601_basic_short': '20201128T211556', 'tz': 'CST', 'tz_offset': '+0800'}, 'system_capabilities_enforced': 'True', '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', 'cap_wake_alarm', 'cap_block_suspend', 'cap_audit_read+ep'], 'ansible_local': {}, 'python': {'version': {'major': 3, 'minor': 6, 'micro': 8, 'releaselevel': 'final', 'serial': 0}, 'version_info': [3, 6, 8, 'final', 0], 'executable': '/usr/libexec/platform-python', 'has_sslcontext': True, 'type': 'cpython'}, 'processor': ['0', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '1', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '2', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '3', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)'], 'processor_count': 4, 'processor_cores': 1, 'processor_threads_per_core': 1, 'processor_vcpus': 4, 'memtotal_mb': 1828, 'memfree_mb': 66, 'swaptotal_mb': 1023, 'swapfree_mb': 325, 'memory_mb': {'real': {'total': 1828, 'used': 1762, 'free': 66}, 'nocache': {'free': 217, 'used': 1611}, 'swap': {'total': 1023, 'free': 325, 'used': 698, 'cached': 48}}, 'bios_date': '04/01/2014', 'bios_version': '1.11.1-3.module+el8+2529+a9686a4d', 'form_factor': 'Other', 'product_name': 'KVM', 'product_serial': 'NA', 'product_uuid': '1909efce-ad5b-4f77-b3e5-a95a58d5ceac', 'product_version': 'RHEL-7.6.0 PC (Q35 + ICH9, 2009)', 'system_vendor': 'Red Hat', 'devices': {'dm-0': {'virtual': 1, 'links': {'ids': ['dm-name-rhel-root', 'dm-uuid-LVM-osPfG5Un9Cq7c0cueLn66woJzDkeaOShdKB4CdtLpOxw7rm3sKse0T1mhDWkmqei'], 'uuids': ['91badd59-71ac-4318-94f6-b7ac90442dbe'], 'labels': [], 'masters': []}, 'vendor': None, 'model': None, 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {}, 'rotational': '1', 'scheduler_mode': '', 'sectors': '37683200', 'sectorsize': '512', 'size': '17.97 GB', 'host': '', 'holders': []}, 'vda': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': '0x1af4', 'model': None, 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {'vda2': {'links': {'ids': ['lvm-pv-uuid-jJy06K-pCHW-UyWt-okfz-usBX-aRiY-VD1q8D'], 'uuids': [], 'labels': [], 'masters': ['dm-0']}, 'start': '616448', 'sectors': '37888000', 'sectorsize': 512, 'size': '18.07 GB', 'uuid': None, 'holders': ['rhel-root']}, 'vda3': {'links': {'ids': [], 'uuids': ['225c4168-b783-4eb3-9d7d-223c552c15fd'], 'labels': [], 'masters': []}, 'start': '38504448', 'sectors': '2097152', 'sectorsize': 512, 'size': '1.00 GB', 'uuid': '225c4168-b783-4eb3-9d7d-223c552c15fd', 'holders': []}, 'vda1': {'links': {'ids': [], 'uuids': ['54e335fd-b7f5-4ef6-9db0-04ad89791fd4'], 'labels': [], 'masters': []}, 'start': '2048', 'sectors': '614400', 'sectorsize': 512, 'size': '300.00 MB', 'uuid': '54e335fd-b7f5-4ef6-9db0-04ad89791fd4', 'holders': []}}, 'rotational': '1', 'scheduler_mode': 'mq-deadline', 'sectors': '46137344', 'sectorsize': '512', 'size': '22.00 GB', 'host': 'SCSI storage controller: Red Hat, Inc. Virtio block device (rev 01)', 'holders': []}}, 'device_links': {'ids': {'dm-0': ['dm-name-rhel-root', 'dm-uuid-LVM-osPfG5Un9Cq7c0cueLn66woJzDkeaOShdKB4CdtLpOxw7rm3sKse0T1mhDWkmqei'], 'vda2': ['lvm-pv-uuid-jJy06K-pCHW-UyWt-okfz-usBX-aRiY-VD1q8D']}, 'uuids': {'dm-0': ['91badd59-71ac-4318-94f6-b7ac90442dbe'], 'vda3': ['225c4168-b783-4eb3-9d7d-223c552c15fd'], 'vda1': ['54e335fd-b7f5-4ef6-9db0-04ad89791fd4']}, 'labels': {}, 'masters': {'vda2': ['dm-0']}}, 'uptime_seconds': 24973, 'lvm': {'lvs': {'root': {'size_g': '17.97', 'vg': 'rhel'}}, 'vgs': {'rhel': {'size_g': '18.06', 'free_g': '0.09', 'num_lvs': '1', 'num_pvs': '1'}}, 'pvs': {'/dev/vda2': {'size_g': '18.06', 'free_g': '0.09', 'vg': 'rhel'}}}, 'mounts': [{'mount': '/', 'device': '/dev/mapper/rhel-root', 'fstype': 'xfs', 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'size_total': 19283312640, 'size_available': 13166116864, 'block_size': 4096, 'block_total': 4707840, 'block_available': 3214384, 'block_used': 1493456, 'inode_total': 9420800, 'inode_available': 9197467, 'inode_used': 223333, 'uuid': '91badd59-71ac-4318-94f6-b7ac90442dbe'}, {'mount': '/boot', 'device': '/dev/vda1', 'fstype': 'xfs', 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'size_total': 308969472, 'size_available': 155312128, 'block_size': 4096, 'block_total': 75432, 'block_available': 37918, 'block_used': 37514, 'inode_total': 153600, 'inode_available': 153299, 'inode_used': 301, 'uuid': '54e335fd-b7f5-4ef6-9db0-04ad89791fd4'}], 'virtualization_role': 'guest', 'virtualization_type': 'kvm', 'apparmor': {'status': 'disabled'}, 'iscsi_iqn': 'iqn.1994-05.com.redhat:76c473472d3e', 'dns': {'search': ['lab.example.com'], 'nameservers': ['172.25.250.254']}, 'hostnqn': '', 'env': {'LS_COLORS': 'rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:', 'LANG': 'en_US.UTF-8', 'SUDO_GID': '4000', 'HOSTNAME': 'workstation.lab.example.com', 'USERNAME': 'root', 'SUDO_COMMAND': '/bin/sh -c echo BECOME-SUCCESS-eqoupxcbbrhbciepdyzafqfomuhyfwzu ; /usr/libexec/platform-python /home/student/.ansible/tmp/ansible-tmp-1606569354.8386884-233654808026087/AnsiballZ_setup.py', 'USER': 'root', 'PWD': '/home/student/ansible', 'HOME': '/root', 'SUDO_USER': 'student', 'SUDO_UID': '4000', 'MAIL': '/var/spool/mail/student', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'SHLVL': '1', 'LOGNAME': 'root', 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin', 'HISTSIZE': '1000', '_': '/usr/libexec/platform-python'}, 'selinux_python_present': True, 'selinux': {'status': 'enabled', 'policyvers': 31, 'config_mode': 'enforcing', 'mode': 'enforcing', 'type': 'targeted'}, 'fips': False, 'interfaces': ['virbr0', 'enp1s0', 'lo', 'virbr0-nic'], 'lo': {'device': 'lo', 'mtu': 65536, 'active': True, 'type': 'loopback', 'promisc': False, 'ipv4': {'address': '127.0.0.1', 'broadcast': 'host', 'netmask': '255.0.0.0', 'network': '127.0.0.0'}, 'ipv6': [{'address': '::1', 'prefix': '128', 'scope': 'host'}], 'features': {'rx_checksumming': 'on [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on [fixed]', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'on [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on [fixed]', 'tx_scatter_gather_fraglist': 'on [fixed]', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'on', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'off [fixed]', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'on [fixed]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'on [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'on [fixed]', 'tx_gso_robust': 'off [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'on', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off [fixed]', 'loopback': 'on [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'virbr0_nic': {'device': 'virbr0-nic', 'macaddress': '52:54:00:d8:3e:55', 'mtu': 1500, 'active': False, 'type': 'ether', 'promisc': True, 'features': {'rx_checksumming': 'off [fixed]', 'tx_checksumming': 'off', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'off [requested on]', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'on', 'tcp_segmentation_offload': 'off', 'tx_tcp_segmentation': 'off [requested on]', 'tx_tcp_ecn_segmentation': 'off [requested on]', 'tx_tcp_mangleid_segmentation': 'off', 'tx_tcp6_segmentation': 'off [requested on]', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'on', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'off [fixed]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'off [fixed]', 'tx_gso_robust': 'off [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'off [fixed]', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'on', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixetesthostvars.ymltesthostvars.ymld]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'enp1s0': {'device': 'enp1s0', 'macaddress': '52:54:00:a1:57:2c', 'mtu': 1500, 'active': True, 'module': 'virtio_net', 'type': 'ether', 'pciid': 'virtio0', 'speed': -1, 'promisc': False, 'ipv4': {'address': '172.25.250.9', 'broadcast': '172.25.250.255', 'netmask': '255.255.255.0', 'network': '172.25.250.0'}, 'ipv6': [{'address': 'fe80::5054:ff:fea1:572c', 'prefix': '64', 'scope': 'link'}], 'features': {'rx_checksumming': 'on [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'off [fixed]', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'off', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'off [fixed]', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'on [fixed]', 'rx_vlan_filter': 'on [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'off [fixed]', 'netns_local': 'off [fixed]', 'tx_gso_robust': 'on [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'off [fixed]', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'virbr0': {'device': 'virbr0', 'macaddress': '52:54:00:d8:3e:55', 'mtu': 1500, 'active': False, 'type': 'bridge', 'interfaces': ['virbr0-nic'], 'id': '8000.525400d83e55', 'stp': True, 'promisc': False, 'ipv4': testhostvars.yml{'address': '192.168.122.1', 'broadcast': '192.168.122.255', 'netmask': '255.255.255.0', 'network': '192.168.122.0'}, 'features': {'rx_checksumming': 'off [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'on', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'on', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'on', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'off [requested on]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'on [fixed]', 'tx_gso_robust': 'off [requested on]', 'tx_fcoe_segmentation': 'off [requested on]', 'tx_gre_segmentation': 'on', 'tx_gre_csum_segmentation': 'on', 'tx_ipxip4_segmentation': 'on', 'tx_ipxip6_segmentation': 'on', 'tx_udp_tnl_segmentation': 'on', 'tx_udp_tnl_csum_segmentation': 'on', 'tx_gso_partial': 'on', 'tx_sctp_segmentation': 'off [requested on]', 'tx_esp_segmentation': 'on', 'tx_udp_segmentation': 'on', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'on', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['rx_software', 'software'], 'hw_timestamp_filters': []}, 'default_ipv4': {'gateway': '172.25.250.254', 'interface': 'enp1s0', 'address': '172.25.250.9', 'broadcast': '172.25.250.255', 'netmask': '255.255.255.0', 'network': '172.25.250.0', 'macaddress': '52:54:00:a1:57:2c', 'mtu': 1500, 'type': 'ether', 'alias': 'enp1s0'}, 'default_ipv6': {}, 'all_ipv4_addresses': ['172.25.250.9', '192.168.122.1'], 'all_ipv6_addresses': ['fe80::5054:ff:fea1:572c'], 'fibre_channel_wwn': [], 'lsb': {}, 'pkg_mgr': 'dnf', 'service_mgr': 'systemd', 'gather_subset': ['all'], 'module_setup': True, 'discovered_interpreter_python': '/usr/libexec/platform-python', '_facts_gathered': True}, 'ansible_cmdline': {'BOOT_IMAGE': '(hd0,msdos1)/vmlinuz-4.18.0-80.el8.x86_64', 'root': '/dev/mapper/rhel-root', 'ro': True, 'crashkernel': 'auto', 'resume': 'UUID=225c4168-b783-4eb3-9d7d-223c552c15fd', 'rd.lvm.lv': 'rhel/root', 'rhgb': True, 'quiet': True}, 'ansible_proc_cmdline': {'BOOT_IMAGE': '(hd0,msdos1)/vmlinuz-4.18.0-80.el8.x86_64', 'root': '/dev/mapper/rhel-root', 'ro': True, 'crashkernel': 'auto', 'resume': 'UUID=225c4168-b783-4eb3-9d7d-223c552c15fd', 'rd.lvm.lv': 'rhel/root', 'rhgb': True, 'quiet': True}, 'ansible_is_chroot': False, 'ansible_user_id': 'root', 'ansible_user_uid': 0, 'ansible_user_gid': 0, 'ansible_user_gecos': 'root', 'ansible_user_dir': '/root', 'ansible_user_shell': '/bin/bash', 'ansible_real_user_id': 0, 'ansible_effective_user_id': 0, 'ansible_real_group_id': 0, 'ansible_effective_group_id': 0, 'ansible_distribution': 'RedHat', 'ansible_distribution_release': 'Ootpa', 'ansible_distribution_version': '8.0', 'ansible_distribution_major_version': '8', 'ansible_distribution_file_path': '/etc/redhat-release', 'ansible_distribution_file_variety': 'RedHat', 'ansible_distribution_file_parsed': True, 'ansible_distribution_file_search_string': 'Red Hat', 'ansible_os_family': 'RedHat', 'ansible_system': 'Linux', 'ansible_kernel': '4.18.0-80.el8.x86_64', 'ansible_machine': 'x86_64', 'ansible_python_version': '3.6.8', 'ansible_fqdn': 'workstation.lab.example.com', 'ansible_hostname': 'workstation', 'ansible_nodename': 'workstation.lab.example.com', 'ansible_domain': 'lab.example.com', 'ansible_userspace_bits': '64', 'ansible_architecture': 'x86_64', 'ansible_userspace_architecture': 'x86_64', 'ansible_machine_id': '1909efcead5b4f77b3e5a95a58d5ceac', 'ansible_ssh_host_key_rsa_public': 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDRoqUCOdleNH0YJPQ56IdnJFjF15uHBKkaG+IgWFaQfSpFq65elQeAUSHySFyaHa9p4G2mwkosMJ9KVxknN0AbZC0UNcNkijQa80DV3G+pM8k/KttAnJofLNJyj/JcndqtQz0b5a1rUhMYgDksTBZc0icLVuwRVJQFBo018RI7UY/qTyNLAzaQMpQLijnKg9Nt+lAd3wS6b++Tp7l/t6P66oAGc7yZ9V+e9hSNbbm9ZEpobu0K81oECLO8L3n/Gnhl88f11zHYCK/zrYrDWdpbcfkLHQ4f59eRa/2QBmIVcM/re8rIKpmCM9ABk/2jzPV+E+q8fXMT3vbL9ufiNiS/', 'ansible_ssh_host_key_ecdsa_public': 'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMaYt5DXXTxtT/qhIJe44sdJvx9JlC9uElEINvWHtoDncMnwOUGeI4jlMRV0QEjc2D/ouiTYHggAbN1BXxe5nrc=', 'ansible_ssh_host_key_ed25519_public': 'AAAAC3NzaC1lZDI1NTE5AAAAIAW7ndnON62LUS6KSvQ2jyUbetFu8eGog4wx7vfuW5QH', 'ansible_date_time': {'year': '2020', 'month': '11', 'weekday': 'Saturday', 'weekday_number': '6', 'weeknumber': '47', 'day': '28', 'hour': '21', 'minute': '15', 'second': '56', 'epoch': '1606569356', 'date': '2020-11-28', 'time': '21:15:56', 'iso8601_micro': '2020-11-28T13:15:56.298931Z', 'iso8601': '2020-11-28T13:15:56Z', 'iso8601_basic': '20201128T211556298751', 'iso8601_basic_short': '20201128T211556', 'tz': 'CST', 'tz_offset': '+0800'}, 'ansible_system_capabilities_enforced': 'True', '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', 'cap_wake_alarm', 'cap_block_suspend', 'cap_audit_read+ep'], 'ansible_local': {}, 'ansible_python': {'version': {'major': 3, 'minor': 6, 'micro': 8, 'releaselevel': 'final', 'serial': 0}, 'version_info': [3, 6, 8, 'final', 0], 'executable': '/usr/libexec/platform-python', 'has_sslcontext': True, 'type': 'cpython'}, 'ansible_processor': ['0', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '1', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '2', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)', '3', 'GenuineIntel', 'Intel Core Processor (Haswell, no TSX)'], 'ansible_processor_count': 4, 'ansible_processor_cores': 1, 'ansible_processor_threads_per_core': 1, 'ansible_processor_vcpus': 4, 'ansible_memtotal_mb': 1828, 'ansible_memfree_mb': 66, 'ansible_swaptotal_mb': 1023, 'ansible_swapfree_mb': 325, 'ansible_memory_mb': {'real': {'total': 1828, 'used': 1762, 'free': 66}, 'nocache': {'free': 217, 'used': 1611}, 'swap': {'total': 1023, 'free': 325, 'used': 698, 'cached': 48}}, 'ansible_bios_date': '04/01/2014', 'ansible_bios_version': '1.11.1-3.module+el8+2529+a9686a4d', 'ansible_form_factor': 'Other', 'ansible_product_name': 'KVM', 'ansible_product_serial': 'NA', 'ansible_product_uuid': '1909efce-ad5b-4f77-b3e5-a95a58d5ceac', 'ansible_product_version': 'RHEL-7.6.0 PC (Q35 + ICH9, 2009)', 'ansible_system_vendor': 'Red Hat', 'ansible_devices': {'dm-0': {'virtual': 1, 'links': {'ids': ['dm-name-rhel-root', 'dm-uuid-LVM-osPfG5Un9Cq7c0cueLn66woJzDkeaOShdKB4CdtLpOxw7rm3sKse0T1mhDWkmqei'], 'uuids': ['91badd59-71ac-4318-94f6-b7ac90442dbe'], 'labels': [], 'masters': []}, 'vendor': None, 'model': None, 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {}, 'rotational': '1', 'scheduler_mode': '', 'sectors': '37683200', 'sectorsize': '512', 'size': '17.97 GB', 'host': '', 'holders': []}, 'vda': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': '0x1af4', 'model': None, 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {'vda2': {'links': {'ids': ['lvm-pv-uuid-jJy06K-pCHW-UyWt-okfz-usBX-aRiY-VD1q8D'], 'uuids': [], 'labels': [], 'masters': ['dm-0']}, 'start': '616448', 'sectors': '37888000', 'sectorsize': 512, 'size': '18.07 GB', 'uuid': None, 'holders': ['rhel-root']}, 'vda3': {'links': {'ids': [], 'uuids': ['225c4168-b783-4eb3-9d7d-223c552c15fd'], 'labels': [], 'masters': []}, 'start': '38504448', 'sectors': '2097152', 'sectorsize': 512, 'size': '1.00 GB', 'uuid': '225c4168-b783-4eb3-9d7d-223c552c15fd', 'holders': []}, 'vda1': {'links': {'ids': [], 'uuids': ['54e335fd-b7f5-4ef6-9db0-04ad89791fd4'], 'labels': [], 'masters': []}, 'start': '2048', 'sectors': '614400', 'sectorsize': 512, 'size': '300.00 MB', 'uuid': '54e335fd-b7f5-4ef6-9db0-04ad89791fd4', 'holders': []}}, 'rotational': '1', 'scheduler_mode': 'mq-deadline', 'sectors': '46137344', 'sectorsize': '512', 'size': '22.00 GB', 'host': 'SCSI storage controller: Red Hat, Inc. Virtio block device (rev 01)', 'holders': []}}, 'ansible_device_links': {'ids': {'dm-0': ['dm-name-rhel-root', 'dm-uuid-LVM-osPfG5Un9Cq7c0cueLn66woJzDkeaOShdKB4CdtLpOxw7rm3sKse0T1mhDWkmqei'], 'vda2': ['lvm-pv-uuid-jJy06K-pCHW-UyWt-okfz-usBX-aRiY-VD1q8D']}, 'uuids': {'dm-0': ['91badd59-71ac-4318-94f6-b7ac90442dbe'], 'vda3': ['225c4168-b783-4eb3-9d7d-223c552c15fd'], 'vda1': ['54e335fd-b7f5-4ef6-9db0-04ad89791fd4']}, 'labels': {}, 'masters': {'vda2': ['dm-0']}}, 'ansible_uptime_seconds': 24973, 'ansible_lvm': {'lvs': {'root': {'size_g': '17.97', 'vg': 'rhel'}}, 'vgs': {'rhel': {'size_g': '18.06', 'free_g': '0.09', 'num_lvs': '1', 'num_pvs': '1'}}, 'pvs': {'/dev/vda2': {'size_g': '18.06', 'free_g': '0.09', 'vg': 'rhel'}}}, 'ansible_mounts': [{'mount': '/', 'device': '/dev/mapper/rhel-root', 'fstype': 'xfs', 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'size_total': 19283312640, 'size_available': 13166116864, 'block_size': 4096, 'block_total': 4707840, 'block_available': 3214384, 'block_used': 1493456, 'inode_total': 9420800, 'inode_available': 9197467, 'inode_used': 223333, 'uuid': '91badd59-71ac-4318-94f6-b7ac90442dbe'}, {'mount': '/boot', 'device': '/dev/vda1', 'fstype': 'xfs', 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'size_total': 308969472, 'size_available': 155312128, 'block_size': 4096, 'block_total': 75432, 'block_available': 37918, 'block_used': 37514, 'inode_total': 153600, 'inode_available': 153299, 'inode_used': 301, 'uuid': '54e335fd-b7f5-4ef6-9db0-04ad89791fd4'}], 'ansible_virtualization_role': 'guest', 'ansible_virtualization_type': 'kvm', 'ansible_apparmor': {'status': 'disabled'}, 'ansible_iscsi_iqn': 'iqn.1994-05.com.redhat:76c473472d3e', 'ansible_dns': {'search': ['lab.example.com'], 'nameservers': ['172.25.250.254']}, 'ansible_hostnqn': '', 'ansible_env': {'LS_COLORS': 'rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:', 'LANG': 'en_US.UTF-8', 'SUDO_GID': '4000', 'HOSTNAME': 'workstation.lab.example.com', 'USERNAME': 'root', 'SUDO_COMMAND': '/bin/sh -c echo BECOME-SUCCESS-eqoupxcbbrhbciepdyzafqfomuhyfwzu ; /usr/libexec/platform-python /home/student/.ansible/tmp/ansible-tmp-1606569354.8386884-233654808026087/AnsiballZ_setup.py', 'USER': 'root', 'PWD': '/home/student/ansible', 'HOME': '/root', 'SUDO_USER': 'student', 'SUDO_UID': '4000', 'MAIL': '/var/spool/mail/student', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'SHLVL': '1', 'LOGNAME': 'root', 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin', 'HISTSIZE': '1000', '_': '/usr/libexec/platform-python'}, 'ansible_selinux_python_present': True, 'ansible_selinux': {'status': 'enabled', 'policyvers': 31, 'config_mode': 'enforcing', 'mode': 'enforcing', 'type': 'targeted'}, 'ansible_fips': False, 'ansible_interfaces': ['virbr0', 'enp1s0', 'lo', 'virbr0-nic'], 'ansible_lo': {'device': 'lo', 'mtu': 65536, 'active': True, 'type': 'loopback', 'promisc': False, 'ipv4': {'address': '127.0.0.1', 'broadcast': 'host', 'netmask': '255.0.0.0', 'network': '127.0.0.0'}, 'ipv6': [{'address': '::1', 'prefix': '128', 'scope': 'host'}], 'features': {'rx_checksumming': 'on [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on [fixed]', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'on [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on [fixed]', 'tx_scatter_gather_fraglist': 'on [fixed]', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'on', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'off [fixed]', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'on [fixed]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'on [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'on [fixed]', 'tx_gso_robust': 'off [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'on', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off [fixed]', 'loopback': 'on [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'ansible_virbr0_nic': {'device': 'virbr0-nic', 'macaddress': '52:54:00:d8:3e:55', 'mtu': 1500, 'active': False, 'type': 'ether', 'promisc': True, 'features': {'rx_checksumming': 'off [fixed]', 'tx_checksumming': 'off', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'off [requested on]', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'on', 'tcp_segmentation_offload': 'off', 'tx_tcp_segmentation': 'off [requested on]', 'tx_tcp_ecn_segmentation': 'off [requested on]', 'tx_tcp_mangleid_segmentation': 'off', 'tx_tcp6_segmentation': 'off [requested on]', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'on', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'off [fixed]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'off [fixed]', 'tx_gso_robust': 'off [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'off [fixed]', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'on', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'ansible_enp1s0': {'device': 'enp1s0', 'macaddress': '52:54:00:a1:57:2c', 'mtu': 1500, 'active': True, 'module': 'virtio_net', 'type': 'ether', 'pciid': 'virtio0', 'speed': -1, 'promisc': False, 'ipv4': {'address': '172.25.250.9', 'broadcast': '172.25.250.255', 'netmask': '255.255.255.0', 'network': '172.25.250.0'}, 'ipv6': [{'address': 'fe80::5054:ff:fea1:572c', 'prefix': '64', 'scope': 'link'}], 'features': {'rx_checksumming': 'on [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'off [fixed]', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'off', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'off [fixed]', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'on [fixed]', 'rx_vlan_filter': 'on [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'off [fixed]', 'netns_local': 'off [fixed]', 'tx_gso_robust': 'on [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_ipxip4_segmentation': 'off [fixed]', 'tx_ipxip6_segmentation': 'off [fixed]', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'tx_sctp_segmentation': 'off [fixed]', 'tx_esp_segmentation': 'off [fixed]', 'tx_udp_segmentation': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['tx_software', 'rx_software', 'software'], 'hw_timestamp_filters': []}, 'ansible_virbr0': {'device': 'virbr0', 'macaddress': '52:54:00:d8:3e:55', 'mtu': 1500, 'active': False, 'type': 'bridge', 'interfaces': ['virbr0-nic'], 'id': '8000.525400d83e55', 'stp': True, 'promisc': False, 'ipv4': {'address': '192.168.122.1', 'broadcast': '192.168.122.255', 'netmask': '255.255.255.0', 'network': '192.168.122.0'}, 'features': {'rx_checksumming': 'off [fixed]', 'tx_checksumming': 'on', 'tx_checksum_ipv4': 'off [fixed]', 'tx_checksum_ip_generic': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'tx_checksum_sctp': 'off [fixed]', 'scatter_gather': 'on', 'tx_scatter_gather': 'on', 'tx_scatter_gather_fraglist': 'on', 'tcp_segmentation_offload': 'on', 'tx_tcp_segmentation': 'on', 'tx_tcp_ecn_segmentation': 'on', 'tx_tcp_mangleid_segmentation': 'on', 'tx_tcp6_segmentation': 'on', 'udp_fragmentation_offload': 'off', 'generic_segmentation_offload': 'on', 'generic_receive_offload': 'on', 'large_receive_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'tx_vlan_offload': 'on', 'ntuple_filters': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'highdma': 'off [requested on]', 'rx_vlan_filter': 'off [fixed]', 'vlan_challenged': 'off [fixed]', 'tx_lockless': 'on [fixed]', 'netns_local': 'on [fixed]', 'tx_gso_robust': 'off [requested on]', 'tx_fcoe_segmentation': 'off [requested on]', 'tx_gre_segmentation': 'on', 'tx_gre_csum_segmentation': 'on', 'tx_ipxip4_segmentation': 'on', 'tx_ipxip6_segmentation': 'on', 'tx_udp_tnl_segmentation': 'on', 'tx_udp_tnl_csum_segmentation': 'on', 'tx_gso_partial': 'on', 'tx_sctp_segmentation': 'off [requested on]', 'tx_esp_segmentation': 'on', 'tx_udp_segmentation': 'on', 'fcoe_mtu': 'off [fixed]', 'tx_nocache_copy': 'off', 'loopback': 'off [fixed]', 'rx_fcs': 'off [fixed]', 'rx_all': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'on', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'l2_fwd_offload': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'esp_hw_offload': 'off [fixed]', 'esp_tx_csum_hw_offload': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tls_hw_tx_offload': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'tls_hw_record': 'off [fixed]'}, 'timestamping': ['rx_software', 'software'], 'hw_timestamp_filters': []}, 'ansible_default_ipv4': {'gateway': '172.25.250.254', 'interface': 'enp1s0', 'address': '172.25.250.9', 'broadcast': '172.25.250.255', 'netmask': '255.255.255.0', 'network': '172.25.250.0', 'macaddress': '52:54:00:a1:57:2c', 'mtu': 1500, 'type': 'ether', 'alias': 'enp1s0'}, 'ansible_default_ipv6': {}, 'ansible_all_ipv4_addresses': ['172.25.250.9', '192.168.122.1'], 'ansible_all_ipv6_addresses': ['fe80::5054:ff:fea1:572c'], 'ansible_fibre_channel_wwn': [], 'ansible_lsb': {}, 'ansible_pkg_mgr': 'dnf', 'ansible_service_mgr': 'systemd', 'gather_subset': ['all'], 'module_setup': True, 'discovered_interpreter_python': '/usr/libexec/platform-python', 'playbook_dir': '/home/student/ansible', 'ansible_playbook_python': '/usr/libexec/platform-python', 'groups': {'all': ['servera', 'serverb', 'serverc', 'serverd'], 'ungrouped': [], 'dev': ['servera'], 'test': ['serverb'], 'prod': ['serverc', 'serverd'], 'balancers': ['serverb'], 'webservers': ['serverc', 'serverd']}, 'omit': '__omit_place_holder__0a79e540f4c35597b73c1d1b9ee2251beec7aaa3', 'ansible_version': {'string': '2.8.0', 'full': '2.8.0', 'major': 2, 'minor': 8, 'revision': 0}, 'ansible_check_mode': False, 'ansible_diff_mode': False, 'ansible_forks': 5, 'ansible_inventory_sources': ('/home/student/ansible/inventory',), 'ansible_skip_tags': (), 'ansible_run_tags': ('all',), 'ansible_verbosity': 0}\"\nservera details items: \"servera\"\n"
}

PLAY RECAP *************************************************************************************************
servera                    : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0



------------------------------------------------------------



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-29 07:31 , Processed in 0.038397 second(s), 24 queries .

快速回复 返回顶部 返回列表