Chapter 5. Appendix This appendix contains the following reference materials: System Facts Operators 5.1. System Facts The following table defines the system facts for use in system comparisons. Table 5.1. System facts and their functions Fact name Description Example value Ansible Category with a list of Ansible-related facts controller_version with a value of 4.0.0 arch System architecture x86_64 bios_release_date BIOS release date; typically MM/DD/YYYY 01/01/2011 bios_vendor BIOS vendor name LENOVO bios_version BIOS version 1.17.0 cloud_provider Cloud vendor. Values are google , azure , aws , alibaba , or empty google cores_per_socket Number of CPU cores per socket 2 cpu_flags Category with a list of CPU flags. Each name is the CPU flag (ex: vmx ), and the value is always enabled . vmx , with a value of enabled enabled_services Category with a list of enabled services. Each name in the category is the service name (ex: crond ), and the value is always enabled . crond , with a value of enabled fqdn The fully qualified domain name (FQDN) of the system system1.example.com infrastructure_type System infrastructure; common values are virtual or physical virtual infrastructure_vendor Infrastructure vendor; common values are kvm , vmware , baremetal , etc. kvm installed_packages List of installed RPM packages. This is a category. bash , with a value of 4.2.46-33.el7.x86_64 . installed_services Category with a list of installed services. Each name in the category is the service name (ex: crond ), and the value is always installed . crond , with a value of installed . kernel_modules List of kernel modules. Each name in the category is the kernel module (ex: nfs ), and the value is enabled . nfs , with a value of enabled . last_boot_time The boot time in YYYY-MM-DDTHH:MM:SS format. Informational only; we do not compare boot times across systems. 2019-09-18T16:54:56 mssql Category with a list of Microsoft SQL Server-related facts mssql_version with a value of 15.0.4153.1 network_interfaces List of facts related to network interfaces. There are six facts for each interface: ipv6_addresses , ipv4_addresses , mac_address , mtu , state and type . The two address fields are comma-separated lists of IP addresses. The state field is either UP or DOWN . The type field is the interface type (ex: ether , loopback , bridge , etc.). Each interface is prefixed to the fact name. For example, the interface em1 would have a mac_address system fact value of em1.mac_address . Most network interface facts are compared to ensure they are equal across systems. However, ipv4_addresses , ipv6_addresses , and mac_address are checked to ensure they are different across systems. A subexception for lo must always have the same IP and MAC address on all systems. number_of_cpus Total number of CPUs 1 number_of_sockets Total number of sockets 1 os_kernel_version Kernel version 4.18.0 os_release Kernel release 8.1 running_processes List of running processes. The fact name is the name of the process, and the value is the instance count. crond , with a value of 1 . sap_instance_number SAP instance number 42 sap_sids SAP system ID (SID) A42 sap_system Boolean field that indicates if SAP is installed on the system True sap_version SAP version number 2.00.052.00.1599235305 satellite_managed Boolean field that indicates whether a system is registered to a Satellite Server FALSE selinux_current_mode Current SELinux mode enforcing selinux_config_file SELinux mode set in the config file enforcing systemd The number of failures, the number of current jobs queued, and the current state of systemd state with a value of degraded system_memory_bytes Total system memory in bytes 8388608 tuned_profile Current profile resulting from the command tuned-adm active desktop yum_repos List of yum repositories. The repository name is added to the beginning of the fact. Each repository has the associated facts base_url , enabled , and gpgcheck . Red Hat Enterprise Linux 7 Server (RPMs).base_url would have the value https://cdn.redhat.com/content/dist/rhel/server/7/USDreleasever/USDbasearch/os 5.2. Operators Table 5.2. Available Operators in Conditions Operators Value Logical Operators AND OR Boolean Operators NOT ! = != Numeric Compare Operators > >= < <= String Compare Operators CONTAINS MATCHES Array Operators IN CONTAINS

Commands: