cancel
Showing results for 
Search instead for 
Did you mean: 
harjitsachar
Flight Engineer
Flight Engineer
  • 8,305 Views

Jinja template variables not working properly

Hi,

I am testing using the follwing setup:

# Inventory file
# only control kvm is switched on
[workstation]
control

[servers]
manageda
managedb
managedc
managedd  
# template-test.j2

{% for host in groups['all'] %}
{{ hostvars[host].ansible_facts.fibre_channel_wwn }}
{% endfor %}
# test.yml -- the playbook

---
- name: p1
  hosts: workstation
  tasks:
    - name: t1
      template:
        src: template-test.j2
        dest: /home/control/template-test
# Error I am getting
 ansible-playbook test.yml -u root -k
SSH password: 

PLAY [p1] **************************************************************************************************************************************

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

TASK [t1] **************************************************************************************************************************************
fatal: [control]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'fibre_channel_wwn'"}

PLAY RECAP *************************************************************************************************************************************
control                    : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0 

 

I only get output into /home/control/template-test when the variable in template is just 

{{ hostvars[host]['ansible_facts'] }}

If I go beyond this , using any variation of :

{{ hostvars[host].ansible_facts.fibre_channel_wwn }}

{{ hostvars[host]['ansible_facts']['fibre_channel_wwn'] }}

I get the error , it seems Ansible cannot parse beyond 

{{ hostvars[host]['ansible_facts'] }}

I am using CentOS 7.7.1908 on the control machine.

 Please help!!!

Labels (1)
0 Kudos
4 Replies
Alexandre
Starfighter Starfighter
Starfighter
  • 8,296 Views

Hi

The problem was discribed in error message:

"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'fibre_channel_wwn'"

What may be reason? Possible issues:

1) Are you looking "fibre_channel.." at workstation? You test.yml hosts is only workstation, but I think that you are looking "fibre_channel.." attributes for servers.

2) But setup step has executed only for workstation as well and does not collect any facts about "all" groups show in template-test.j2 yet.

 

0 Kudos
harjitsachar
Flight Engineer
Flight Engineer
  • 8,276 Views

The issue is not fibre channel...

I can choose any key besides this within ansible_facts and I get the same error. it thus seems that ansible in not able to parse into ansible_facts  and get to the output of individual keys within it.

Although if I leave be at just 

{{ hostvars[host]['ansible_facts'] }} 

Then I get the output as a single JSON string containing all the keys. 

I should be able to get at the values of indivdual keys.


0 Kudos
Alexandre
Starfighter Starfighter
Starfighter
  • 8,271 Views

Although if I leave be at just 

{{ hostvars[host]['ansible_facts'] }} 

Then I get the output as a single JSON string containing all the keys.

Please, looks at the content this JSON. Which facts was collected about each hosts?

0 Kudos
harjitsachar
Flight Engineer
Flight Engineer
  • 8,261 Views

Hi,

Here is the JSON content. As you can see it collects a considerable amount, all of which should be accessible.

JSON:

{'fibre_channel_wwn': [], 'module_setup': True, 'distribution_version': '7.7', 'distribution_file_variety': 'RedHat', 'env': {'LC_NUMERIC': 'C', 'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'SSH_CLIENT': '192.168.122.1 51114 22', 'SELINUX_USE_CURRENT_RANGE': '', 'LOGNAME': 'root', 'USER': 'root', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HOME': '/root', 'LANG': 'C', 'TERM': 'screen', 'SHELL': '/bin/bash', 'SHLVL': '2', 'XMODIFIERS': '@im=none', 'XDG_RUNTIME_DIR': '/run/user/0', 'SELINUX_ROLE_REQUESTED': '', 'LC_ALL': 'C', 'XDG_SESSION_ID': '5', '_': '/usr/bin/python', 'SSH_CONNECTION': '192.168.122.1 51114 192.168.122.73 22', 'SSH_TTY': '/dev/pts/1', 'SELINUX_LEVEL_REQUESTED': '', 'XDG_DATA_DIRS': '/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share', 'PWD': '/root', 'MAIL': '/var/mail/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:'}, 'userspace_bits': '64', 'architecture': 'x86_64', 'default_ipv4': {'macaddress': '52:54:00:c8:f7:e4', 'network': '192.168.122.0', 'mtu': 1500, 'broadcast': '192.168.122.255', 'alias': 'enp1s0', 'netmask': '255.255.255.0', 'address': '192.168.122.73', 'interface': 'enp1s0', 'type': 'ether', 'gateway': '192.168.122.1'}, 'swapfree_mb': 2047, 'default_ipv6': {}, 'cmdline': {'LANG': 'en_US.UTF-8', 'BOOT_IMAGE': '/vmlinuz-3.10.0-1062.18.1.el7.x86_64', 'quiet': True, 'rhgb': True, 'rd.lvm.lv': 'centos/swap', 'crashkernel': 'auto', 'ro': True, 'root': '/dev/mapper/centos-root'}, 'machine_id': '5e6bebf439f64c73bcd64ae4feca2bdd', 'userspace_architecture': 'x86_64', 'product_uuid': '2BAB2329-3184-43A6-AE12-4D9005F54AFD', 'pkg_mgr': 'yum', 'distribution': 'CentOS', 'iscsi_iqn': 'iqn.1994-05.com.redhat:7fbeeb61ddf', 'all_ipv6_addresses': ['fe80::20e9:6964:f074:2fbf'], 'uptime_seconds': 614, 'kernel': '3.10.0-1062.18.1.el7.x86_64', 'system_capabilities_enforced': 'True', 'python': {'executable': '/usr/bin/python', 'version': {'micro': 5, 'major': 2, 'releaselevel': 'final', 'serial': 0, 'minor': 7}, 'type': 'CPython', 'has_sslcontext': True, 'version_info': [2, 7, 5, 'final', 0]}, 'is_chroot': False, 'hostnqn': '', 'user_shell': '/bin/bash', 'product_serial': 'NA', 'form_factor': 'Other', 'distribution_file_parsed': True, 'fips': False, 'user_id': 'root', 'selinux_python_present': True, 'kernel_version': '#1 SMP Tue Mar 17 23:49:17 UTC 2020', 'ansible_local': {}, 'processor_vcpus': 4, 'processor': ['0', 'GenuineIntel', 'Intel Core Processor (Skylake, IBRS)', '1', 'GenuineIntel', 'Intel Core Processor (Skylake, IBRS)', '2', 'GenuineIntel', 'Intel Core Processor (Skylake, IBRS)', '3', 'GenuineIntel', 'Intel Core Processor (Skylake, IBRS)'], 'ssh_host_key_ecdsa_public': 'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ33AaFXGnB9Z9pA/zoYcHx6ezBwCt4TNssMjJ39neU6zhp9kXXdvyx2b3AvVdUZ5/kBhOH3AxoRsxsRjnoM0eI=', 'user_gid': 0, 'system_vendor': 'QEMU', 'swaptotal_mb': 2047, 'distribution_major_version': '7', 'real_group_id': 0, 'lsb': {}, 'machine': 'x86_64', 'ssh_host_key_rsa_public': 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDj+3CL3ckWZJu8Tuy62EggzCawhwP++YNcUFBdIlGJU+cLqkuHSo0M/wLpWd6CkOF07je0j9VlZLYe2vNWrn+SWRjwsKF3UTRe98zwuXlPt2ydT7NKZf+eMCbZUndbVc0ydYFOc8hMmIfyn9biuOLK0N31lIlLp9LkRzkZxO5/OpSJ1wtEd+C7M/qSQC0pE0e0q5Ys0qZ7/qkwdIZNCeNO4NsGm/OGNzre9jZSfGQpZnLxPypDLKNl3g8O7pCas6hl1KmyO5uWU9fK0DRMm5Cz7q4uCWdbTnIUlJuHQHTiRkMy72VrHmMAE2Iyvok7V3V/v68LMtpR8Y3qUt6BDIEN', 'user_gecos': 'root', 'processor_threads_per_core': 1, 'product_name': 'Standard PC (Q35 + ICH9, 2009)', 'all_ipv4_addresses': ['192.168.122.73'], 'python_version': '2.7.5', 'product_version': 'pc-q35-5.1', 'service_mgr': 'systemd', 'memory_mb': {'real': {'total': 486, 'used': 336, 'free': 150}, 'swap': {'cached': 0, 'total': 2047, 'free': 2047, 'used': 0}, 'nocache': {'used': 208, 'free': 278}}, 'user_dir': '/root', 'gather_subset': ['all'], 'real_user_id': 0, 'virtualization_role': 'guest', 'dns': {'nameservers': ['192.168.122.1'], 'search': ['lab.example.com']}, 'effective_group_id': 0, 'lo': {'features': {'tx_checksum_ipv4': 'off [fixed]', 'generic_receive_offload': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_scatter_gather_fraglist': 'on [fixed]', 'rx_all': 'off [fixed]', 'highdma': 'on [fixed]', 'rx_fcs': 'off [fixed]', 'tx_lockless': 'on [fixed]', 'tx_tcp_ecn_segmentation': 'on', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tx_tcp6_segmentation': 'on', 'tx_gso_robust': 'off [fixed]', 'tx_ipip_segmentation': 'off [fixed]', 'tx_tcp_mangleid_segmentation': 'on', 'tx_checksumming': 'on', 'vlan_challenged': 'on [fixed]', 'loopback': 'on [fixed]', 'fcoe_mtu': 'off [fixed]', 'scatter_gather': 'on', 'tx_checksum_sctp': 'on [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'large_receive_offload': 'off [fixed]', 'tx_scatter_gather': 'on [fixed]', 'rx_checksumming': 'on [fixed]', 'tx_tcp_segmentation': 'on', 'netns_local': 'on [fixed]', 'busy_poll': 'off [fixed]', 'generic_segmentation_offload': 'on', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tcp_segmentation_offload': 'on', 'l2_fwd_offload': 'off [fixed]', 'rx_vlan_offload': 'off [fixed]', 'ntuple_filters': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_nocache_copy': 'off [fixed]', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'udp_fragmentation_offload': 'on', 'tx_sctp_segmentation': 'on', 'tx_sit_segmentation': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'tx_checksum_ip_generic': 'on [fixed]', 'tx_fcoe_segmentation': 'off [fixed]', 'rx_vlan_filter': 'off [fixed]', 'tx_vlan_offload': 'off [fixed]', 'receive_hashing': 'off [fixed]', 'tx_gre_segmentation': 'off [fixed]'}, 'hw_timestamp_filters': [], 'mtu': 65536, 'device': 'lo', 'promisc': False, 'timestamping': ['rx_software', 'software'], 'ipv4': {'broadcast': '', 'netmask': '255.0.0.0', 'network': '127.0.0.0', 'address': '127.0.0.1'}, 'ipv6': [{'scope': 'host', 'prefix': '128', 'address': '::1'}], 'active': True, 'type': 'loopback'}, 'memtotal_mb': 486, 'device_links': {'masters': {'vda3': ['dm-0', 'dm-1', 'dm-2']}, 'labels': {}, 'ids': {'dm-2': ['dm-name-centos-home', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW60Bmh6wdFddgKJOqN5BeL0TAa0SAgc4KNR'], 'vda3': ['lvm-pv-uuid-qBn61v-cRaJ-UggP-3dwY-q5Nq-mVTn-ysbLQn'], 'dm-0': ['dm-name-centos-root', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW602PHisLPvdYLiMJ1Obt7pjfnERY5g91Dv'], 'dm-1': ['dm-name-centos-swap', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW60qh1tMJ9I6mmyBq4BArrkeYaiQxLUhKfD']}, 'uuids': {'vda2': ['1351b0fc-e376-449f-b990-bafc5da674e3'], 'dm-2': ['15dcc341-a375-41e5-b9c6-a8de16ddfc60'], 'dm-0': ['6768ab84-b6cb-4353-aec7-1689e5b25c0a'], 'dm-1': ['cd1b8fd6-af03-4dc7-8b01-a50c907f5fac']}}, 'apparmor': {'status': 'disabled'}, 'proc_cmdline': {'LANG': 'en_US.UTF-8', 'BOOT_IMAGE': '/vmlinuz-3.10.0-1062.18.1.el7.x86_64', 'quiet': True, 'rhgb': True, 'rd.lvm.lv': ['centos/root', 'centos/swap'], 'crashkernel': 'auto', 'ro': True, 'root': '/dev/mapper/centos-root'}, 'memfree_mb': 150, 'processor_count': 4, 'hostname': 'control', 'interfaces': ['lo', 'enp1s0'], 'selinux': {'status': 'enabled', 'policyvers': 31, 'type': 'targeted', 'mode': 'enforcing', 'config_mode': 'enforcing'}, 'fqdn': 'control.lab.example.com', 'mounts': [{'block_used': 69628, 'uuid': '1351b0fc-e376-449f-b990-bafc5da674e3', 'size_total': 1063256064, 'block_total': 259584, 'mount': '/boot', 'block_available': 189956, 'size_available': 778059776, 'fstype': 'xfs', 'inode_total': 524288, 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'device': '/dev/vda2', 'inode_used': 355, 'block_size': 4096, 'inode_available': 523933}, {'block_used': 1114304, 'uuid': '6768ab84-b6cb-4353-aec7-1689e5b25c0a', 'size_total': 53660876800, 'block_total': 13100800, 'mount': '/', 'block_available': 11986496, 'size_available': 49096687616, 'fstype': 'xfs', 'inode_total': 26214400, 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'device': '/dev/mapper/centos-root', 'inode_used': 151134, 'block_size': 4096, 'inode_available': 26063266}, {'block_used': 23190, 'uuid': '15dcc341-a375-41e5-b9c6-a8de16ddfc60', 'size_total': 1125840853139456, 'block_total': 274863489536, 'mount': '/home', 'block_available': 274863466346, 'size_available': 1125840758153216, 'fstype': 'xfs', 'inode_total': 21989120896, 'options': 'rw,seclabel,relatime,attr2,inode64,noquota', 'device': '/dev/mapper/centos-home', 'inode_used': 211, 'block_size': 4096, 'inode_available': 21989120685}], 'nodename': 'control.lab.example.com', 'lvm': {'pvs': {'/dev/vda3': {'free_g': '0.00', 'size_g': '1048575.00', 'vg': 'centos'}}, 'lvs': {'home': {'size_g': '1048522.99', 'vg': 'centos'}, 'root': {'size_g': '50.00', 'vg': 'centos'}, 'swap': {'size_g': '2.00', 'vg': 'centos'}}, 'vgs': {'centos': {'free_g': '0.00', 'size_g': '1048575.00', 'num_lvs': '3', 'num_pvs': '1'}}}, 'domain': 'lab.example.com', 'distribution_file_path': '/etc/redhat-release', 'virtualization_type': 'kvm', 'ssh_host_key_ed25519_public': 'AAAAC3NzaC1lZDI1NTE5AAAAIHGH25NCStfzb3TI3TBvldVCAeXUZSEUbttmZ65BRAT7', 'processor_cores': 1, 'bios_version': '1.13.0-3.fc33', 'date_time': {'weekday_number': '0', 'iso8601_basic_short': '20201122T093724', 'tz': 'IST', 'weeknumber': '46', 'hour': '09', 'year': '2020', 'minute': '37', 'tz_offset': '+0530', 'month': '11', 'epoch': '1606018044', 'iso8601_micro': '2020-11-22T04:07:24.230319Z', 'weekday': 'Sunday', 'time': '09:37:24', 'date': '2020-11-22', 'iso8601': '2020-11-22T04:07:24Z', 'day': '22', 'iso8601_basic': '20201122T093724230319', 'second': '24'}, 'distribution_release': 'Core', 'os_family': 'RedHat', 'enp1s0': {'macaddress': '52:54:00:c8:f7:e4', 'phc_index': 0, 'features': {'tx_checksum_ipv4': 'off [fixed]', 'generic_receive_offload': 'on', 'tx_checksum_ipv6': 'off [fixed]', 'tx_scatter_gather_fraglist': 'off [fixed]', 'rx_all': 'off', 'highdma': 'on [fixed]', 'rx_fcs': 'off', 'tx_lockless': 'off [fixed]', 'tx_tcp_ecn_segmentation': 'off [fixed]', 'rx_udp_tunnel_port_offload': 'off [fixed]', 'tx_tcp6_segmentation': 'on', 'tx_gso_robust': 'off [fixed]', 'tx_ipip_segmentation': 'off [fixed]', 'tx_tcp_mangleid_segmentation': 'off', 'tx_checksumming': 'on', 'vlan_challenged': 'off [fixed]', 'loopback': 'off [fixed]', 'fcoe_mtu': 'off [fixed]', 'scatter_gather': 'on', 'tx_checksum_sctp': 'off [fixed]', 'tx_vlan_stag_hw_insert': 'off [fixed]', 'rx_vlan_stag_hw_parse': 'off [fixed]', 'tx_gso_partial': 'off [fixed]', 'rx_gro_hw': 'off [fixed]', 'rx_vlan_stag_filter': 'off [fixed]', 'large_receive_offload': 'off [fixed]', 'tx_scatter_gather': 'on', 'rx_checksumming': 'on', 'tx_tcp_segmentation': 'on', 'netns_local': 'off [fixed]', 'busy_poll': 'off [fixed]', 'generic_segmentation_offload': 'on', 'tx_udp_tnl_segmentation': 'off [fixed]', 'tcp_segmentation_offload': 'on', 'l2_fwd_offload': 'off [fixed]', 'rx_vlan_offload': 'on', 'ntuple_filters': 'off [fixed]', 'tx_gre_csum_segmentation': 'off [fixed]', 'tx_nocache_copy': 'off', 'tx_udp_tnl_csum_segmentation': 'off [fixed]', 'udp_fragmentation_offload': 'off [fixed]', 'tx_sctp_segmentation': 'off [fixed]', 'tx_sit_segmentation': 'off [fixed]', 'tx_checksum_fcoe_crc': 'off [fixed]', 'hw_tc_offload': 'off [fixed]', 'tx_checksum_ip_generic': 'on', 'tx_fcoe_segmentation': 'off [fixed]', 'rx_vlan_filter': 'on [fixed]', 'tx_vlan_offload': 'on', 'receive_hashing': 'on', 'tx_gre_segmentation': 'off [fixed]'}, 'type': 'ether', 'pciid': '0000:01:00.0', 'module': 'e1000e', 'mtu': 1500, 'device': 'enp1s0', 'promisc': False, 'timestamping': ['tx_hardware', 'tx_software', 'rx_hardware', 'rx_software', 'software', 'raw_hardware'], 'ipv4': {'broadcast': '192.168.122.255', 'netmask': '255.255.255.0', 'network': '192.168.122.0', 'address': '192.168.122.73'}, 'ipv6': [{'scope': 'link', 'prefix': '64', 'address': 'fe80::20e9:6964:f074:2fbf'}], 'active': True, 'speed': 1000, 'hw_timestamp_filters': ['none', 'all', 'ptp_v1_l4_sync', 'ptp_v1_l4_delay_req', 'ptp_v2_l4_sync', 'ptp_v2_l4_delay_req', 'ptp_v2_l2_sync', 'ptp_v2_l2_delay_req', 'ptp_v2_event', 'ptp_v2_sync', 'ptp_v2_delay_req']}, 'effective_user_id': 0, 'system': 'Linux', 'devices': {'vda': {'scheduler_mode': 'mq-deadline', 'rotational': '1', 'vendor': '0x1af4', 'sectors': '2199023255552', 'links': {'masters': [], 'labels': [], 'ids': [], 'uuids': []}, 'sas_device_handle': None, 'sas_address': None, 'virtual': 1, 'host': 'SCSI storage controller: Red Hat, Inc. Virtio block device (rev 01)', 'sectorsize': '512', 'removable': '0', 'support_discard': '0', 'model': None, 'partitions': {'vda1': {'sectorsize': 512, 'uuid': None, 'links': {'masters': [], 'labels': [], 'ids': [], 'uuids': []}, 'sectors': '2048', 'start': '2048', 'holders': [], 'size': '1.00 MB'}, 'vda3': {'sectorsize': 512, 'uuid': None, 'links': {'masters': ['dm-0', 'dm-1', 'dm-2'], 'labels': [], 'ids': ['lvm-pv-uuid-qBn61v-cRaJ-UggP-3dwY-q5Nq-mVTn-ysbLQn'], 'uuids': []}, 'sectors': '2199021152256', 'start': '2101248', 'holders': ['centos-root', 'centos-swap', 'centos-home'], 'size': '1024.00 TB'}, 'vda2': {'sectorsize': 512, 'uuid': '1351b0fc-e376-449f-b990-bafc5da674e3', 'links': {'masters': [], 'labels': [], 'ids': [], 'uuids': ['1351b0fc-e376-449f-b990-bafc5da674e3']}, 'sectors': '2097152', 'start': '4096', 'holders': [], 'size': '1.00 GB'}}, 'holders': [], 'size': '1.00 PB'}, 'dm-2': {'scheduler_mode': '', 'rotational': '1', 'vendor': None, 'sectors': '2198912090112', 'links': {'masters': [], 'labels': [], 'ids': ['dm-name-centos-home', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW60Bmh6wdFddgKJOqN5BeL0TAa0SAgc4KNR'], 'uuids': ['15dcc341-a375-41e5-b9c6-a8de16ddfc60']}, 'sas_device_handle': None, 'sas_address': None, 'virtual': 1, 'host': '', 'sectorsize': '512', 'removable': '0', 'support_discard': '0', 'model': None, 'partitions': {}, 'holders': [], 'size': '1023.95 TB'}, 'dm-0': {'scheduler_mode': '', 'rotational': '1', 'vendor': None, 'sectors': '104857600', 'links': {'masters': [], 'labels': [], 'ids': ['dm-name-centos-root', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW602PHisLPvdYLiMJ1Obt7pjfnERY5g91Dv'], 'uuids': ['6768ab84-b6cb-4353-aec7-1689e5b25c0a']}, 'sas_device_handle': None, 'sas_address': None, 'virtual': 1, 'host': '', 'sectorsize': '512', 'removable': '0', 'support_discard': '0', 'model': None, 'partitions': {}, 'holders': [], 'size': '50.00 GB'}, 'dm-1': {'scheduler_mode': '', 'rotational': '1', 'vendor': None, 'sectors': '4194304', 'links': {'masters': [], 'labels': [], 'ids': ['dm-name-centos-swap', 'dm-uuid-LVM-apZZT74q1D9ofIyMI9Qlo06qU46qdW60qh1tMJ9I6mmyBq4BArrkeYaiQxLUhKfD'], 'uuids': ['cd1b8fd6-af03-4dc7-8b01-a50c907f5fac']}, 'sas_device_handle': None, 'sas_address': None, 'virtual': 1, 'host': '', 'sectorsize': '512', 'removable': '0', 'support_discard': '0', 'model': None, 'partitions': {}, 'holders': [], 'size': '2.00 GB'}}, 'user_uid': 0, 'bios_date': '04/01/2014', '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'], 'discovered_interpreter_python': '/usr/bin/python', '_ansible_facts_gathered': True}
{}
{}
{}
{}

0 Kudos
Join the discussion
You must log in to join this conversation.