+ cd /tmp/tmph8xfueks/tests; TEST_SUBJECTS=/cache/fedora-31.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-38-e9079fa-fedora-31-4jurc5p3/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmph8xfueks/_setup.yml /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml ansible-playbook 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmph8xfueks/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph8xfueks/_setup.yml:5 ok: [/cache/fedora-31.qcow2] => { "groups": { "all": [ "/cache/fedora-31.qcow2" ], "localhost": [ "/cache/fedora-31.qcow2" ], "subjects": [ "/cache/fedora-31.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph8xfueks/_setup.yml:7 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_bool_not_allowed.yml ******************************************* 1 plays in /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml PLAY [test boolean values not allowed] ***************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml:2 ok: [/cache/fedora-31.qcow2] META: ran handlers TASK [try to pass a boolean value for bootloader cmdline] ********************** task path: /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml:7 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 changed: [/cache/fedora-31.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: pciutils-libs-3.6.4-1.fc31.x86_64", "Installed: python3-decorator-4.4.0-2.fc31.noarch", "Installed: kernel-tools-5.8.18-200.fc31.x86_64", "Installed: kernel-tools-libs-5.8.18-200.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: polkit-0.116-4.fc31.x86_64", "Installed: polkit-pkla-compat-0.1-15.fc31.x86_64", "Installed: mozjs60-60.9.0-5.fc31.x86_64", "Installed: dmidecode-1:3.2-3.fc31.x86_64", "Installed: hdparm-9.58-2.fc31.x86_64", "Installed: virt-what-1.19-3.fc31.x86_64", "Installed: python3-libxml2-2.9.9-3.fc31.x86_64", "Installed: python3-perf-5.8.18-200.fc31.x86_64", "Installed: python3-linux-procfs-0.6.1-3.fc31.noarch", "Installed: python3-schedutils-0.6-8.fc31.x86_64", "Installed: python3-dmidecode-3.12.2-16.fc31.x86_64", "Installed: tuned-2.14.0-2.fc31.noarch", "Installed: numactl-libs-2.0.12-3.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: ethtool-2:5.9-1.fc31.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 changed: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target basic.target dbus-broker.service sysinit.target dbus.socket systemd-sysctl.service systemd-journald.socket system.slice", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "polkit.service dbus.socket dbus-broker.service system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1605061842.3881114-325114-37240911303098/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 [WARNING]: Error: section [bootloader] item [somevalue] value [True] must not be a boolean - try quoting the value fatal: [/cache/fedora-31.qcow2]: FAILED! => {"changed": false, "message": "", "msg": "Invalid format for input parameters"} TASK [check for bootloader cmdline bool value error] *************************** task path: /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml:20 ok: [/cache/fedora-31.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [try to pass a boolean value for sysctl value] **************************** task path: /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml:26 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 ok: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 02:30:40 UTC", "ActiveEnterTimestampMonotonic": "58203251", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket systemd-sysctl.service dbus.socket sysinit.target dbus-broker.service basic.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 02:30:40 UTC", "AssertTimestampMonotonic": "57850226", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "396409000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 02:30:40 UTC", "ConditionTimestampMonotonic": "57850225", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "4266", "ExecMainStartTimestamp": "Wed 2020-11-11 02:30:40 UTC", "ExecMainStartTimestampMonotonic": "57851207", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-11-11 02:30:40 UTC] ; stop_time=[n/a] ; pid=4266 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[Wed 2020-11-11 02:30:40 UTC] ; stop_time=[n/a] ; pid=4266 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 02:30:40 UTC", "InactiveExitTimestampMonotonic": "57851571", "InvocationID": "4a32d62759ad46378d10d60962d763cb", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "4266", "MemoryAccounting": "yes", "MemoryCurrent": "26267648", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket dbus-broker.service polkit.service system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-11-11 02:30:40 UTC", "StateChangeTimestampMonotonic": "58203251", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 ok: [/cache/fedora-31.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 ok: [/cache/fedora-31.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/home/tester/.ansible/tmp/ansible-local-324872swphujx8/tmphpo16lqs/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 [WARNING]: Error: section [sysctl] item [somevalue] value [True] must not be a boolean - try quoting the value fatal: [/cache/fedora-31.qcow2]: FAILED! => {"changed": false, "message": "", "msg": "Invalid format for input parameters"} TASK [check for sysctl bool value error] *************************************** task path: /tmp/tmph8xfueks/tests/tests_bool_not_allowed.yml:39 ok: [/cache/fedora-31.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=14 changed=4 unreachable=0 failed=0 skipped=1 rescued=2 ignored=0 + cd /tmp/tmph8xfueks/tests; TEST_SUBJECTS=/cache/fedora-31.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-38-e9079fa-fedora-31-4jurc5p3/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmph8xfueks/_setup.yml /tmp/tmph8xfueks/tests/tests_change_settings.yml ansible-playbook 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmph8xfueks/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph8xfueks/_setup.yml:5 ok: [/cache/fedora-31.qcow2] => { "groups": { "all": [ "/cache/fedora-31.qcow2" ], "localhost": [ "/cache/fedora-31.qcow2" ], "subjects": [ "/cache/fedora-31.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph8xfueks/_setup.yml:7 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_settings.yml ******************************************** 1 plays in /tmp/tmph8xfueks/tests/tests_change_settings.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:1 ok: [/cache/fedora-31.qcow2] META: ran handlers TASK [Ensure required packages are installed] ********************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:3 changed: [/cache/fedora-31.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: pciutils-libs-3.6.4-1.fc31.x86_64", "Installed: python3-decorator-4.4.0-2.fc31.noarch", "Installed: kernel-tools-5.8.18-200.fc31.x86_64", "Installed: kernel-tools-libs-5.8.18-200.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: polkit-0.116-4.fc31.x86_64", "Installed: polkit-pkla-compat-0.1-15.fc31.x86_64", "Installed: mozjs60-60.9.0-5.fc31.x86_64", "Installed: dmidecode-1:3.2-3.fc31.x86_64", "Installed: hdparm-9.58-2.fc31.x86_64", "Installed: virt-what-1.19-3.fc31.x86_64", "Installed: python3-libxml2-2.9.9-3.fc31.x86_64", "Installed: python3-perf-5.8.18-200.fc31.x86_64", "Installed: python3-linux-procfs-0.6.1-3.fc31.noarch", "Installed: python3-schedutils-0.6-8.fc31.x86_64", "Installed: python3-dmidecode-3.12.2-16.fc31.x86_64", "Installed: tuned-2.14.0-2.fc31.noarch", "Installed: numactl-libs-2.0.12-3.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: ethtool-2:5.9-1.fc31.x86_64"]} TASK [Ensure kernel settings profile directory exists] ************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:8 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Generate a configuration for kernel settings] **************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:14 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "13fdc203370e2b8e7e42c13d94b671b1ac621563", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "d5df32baf1a63528844555117ead6672", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 381, "src": "/root/.ansible/tmp/ansible-tmp-1605061906.0964274-325432-280823791665269/source", "state": "file", "uid": 0} TASK [Ensure required services are enabled and started] ************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:20 changed: [/cache/fedora-31.qcow2] => {"changed": true, "enabled": true, "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service network.target system.slice basic.target sysinit.target systemd-sysctl.service systemd-journald.socket dbus.socket", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus-broker.service sysinit.target polkit.service dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [apply kernel_settings] *************************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:26 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 ok: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 02:31:47 UTC", "ActiveEnterTimestampMonotonic": "53886762", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service sysinit.target dbus.socket system.slice systemd-sysctl.service systemd-journald.socket network.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 02:31:47 UTC", "AssertTimestampMonotonic": "53600676", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "325308000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 02:31:47 UTC", "ConditionTimestampMonotonic": "53600676", "ConfigurationDirectoryMode": "0755", "Conflicts": "cpupower.service shutdown.target", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7593", "ExecMainStartTimestamp": "Wed 2020-11-11 02:31:47 UTC", "ExecMainStartTimestampMonotonic": "53601705", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-11-11 02:31:47 UTC] ; stop_time=[n/a] ; pid=7593 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[Wed 2020-11-11 02:31:47 UTC] ; stop_time=[n/a] ; pid=7593 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 02:31:47 UTC", "InactiveExitTimestampMonotonic": "53602047", "InvocationID": "c1eddafe0d034ff884bfcace9fb88680", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7593", "MemoryAccounting": "yes", "MemoryCurrent": "25415680", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus-broker.service dbus.socket system.slice sysinit.target polkit.service", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-11-11 02:31:47 UTC", "StateChangeTimestampMonotonic": "53886762", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 ok: [/cache/fedora-31.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 ok: [/cache/fedora-31.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/home/tester/.ansible/tmp/ansible-local-325246iw8cm5ih/tmpj_kn6hfl/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/fedora-31.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/fedora-31.qcow2 changed: [/cache/fedora-31.qcow2] => {"active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "msg": "Kernel settings were updated.", "new_profile": {"sysctl": {"fs.epoll.max_user_watches": "785592", "fs.file-max": "400000", "vm.max_map_count": "65530"}, "sysfs": {"/sys/class/net/lo/mtu": "65000", "/sys/fs/selinux/avc/cache_threshold": "256", "/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0"}}, "reboot_required": false} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "virtual-guest kernel_settings"], "delta": "0:00:01.132382", "end": "2020-11-11 02:31:55.547270", "rc": 0, "start": "2020-11-11 02:31:54.414888", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 included: /tmp/tmph8xfueks/tasks/verify_settings.yml for /cache/fedora-31.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.111810", "end": "2020-11-11 02:31:56.033091", "rc": 0, "start": "2020-11-11 02:31:55.921281", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:24 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check sysfs after role runs] ********************************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:39 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["grep", "-x", "65000", "/sys/class/net/lo/mtu"], "delta": "0:00:01.004816", "end": "2020-11-11 02:31:57.478059", "rc": 0, "start": "2020-11-11 02:31:56.473243", "stderr": "", "stderr_lines": [], "stdout": "65000", "stdout_lines": ["65000"]} TASK [check sysctl after role runs] ******************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:42 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n fs.file-max | grep -x 400000", "delta": "0:00:00.005972", "end": "2020-11-11 02:31:57.800992", "rc": 0, "start": "2020-11-11 02:31:57.795020", "stderr": "", "stderr_lines": [], "stdout": "400000", "stdout_lines": ["400000"]} TASK [check sysctl after role runs] ******************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:45 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n kernel.threads-max | grep -Lxvq 29968", "delta": "0:00:00.004525", "end": "2020-11-11 02:31:58.124739", "rc": 0, "start": "2020-11-11 02:31:58.120214", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:48 changed: [/cache/fedora-31.qcow2] => {"changed": true, "elapsed": 14, "rebooted": true} TASK [check sysctl after reboot] *********************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:52 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n fs.file-max | grep -x 400000", "delta": "0:00:00.006371", "end": "2020-11-11 02:32:13.476703", "rc": 0, "start": "2020-11-11 02:32:13.470332", "stderr": "", "stderr_lines": [], "stdout": "400000", "stdout_lines": ["400000"]} TASK [check sysfs after reboot] ************************************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:55 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["grep", "-x", "65000", "/sys/class/net/lo/mtu"], "delta": "0:00:00.003187", "end": "2020-11-11 02:32:13.789408", "rc": 0, "start": "2020-11-11 02:32:13.786221", "stderr": "", "stderr_lines": [], "stdout": "65000", "stdout_lines": ["65000"]} TASK [show cmdline] ************************************************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:58 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["cat", "/proc/cmdline"], "delta": "0:00:00.003026", "end": "2020-11-11 02:32:14.111812", "rc": 0, "start": "2020-11-11 02:32:14.108786", "stderr": "", "stderr_lines": [], "stdout": "BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.3.7-301.fc31.x86_64 root=UUID=b1438b9b-2cab-4065-a99a-08a96687f73c ro no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8", "stdout_lines": ["BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.3.7-301.fc31.x86_64 root=UUID=b1438b9b-2cab-4065-a99a-08a96687f73c ro no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"]} TASK [check sysctl after reboot] *********************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:61 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n kernel.threads-max | grep -Lxvq 29968", "delta": "0:00:00.005035", "end": "2020-11-11 02:32:14.428468", "rc": 0, "start": "2020-11-11 02:32:14.423433", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [check with tuned verify] ************************************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:64 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.148163", "end": "2020-11-11 02:32:14.882987", "rc": 0, "start": "2020-11-11 02:32:14.734824", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [apply role again and remove settings] ************************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:67 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 ok: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 02:32:07 UTC", "ActiveEnterTimestampMonotonic": "5009729", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-sysctl.service basic.target dbus-broker.service dbus.socket systemd-journald.socket sysinit.target network.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 02:32:07 UTC", "AssertTimestampMonotonic": "4783451", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "216815000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 02:32:07 UTC", "ConditionTimestampMonotonic": "4783450", "ConfigurationDirectoryMode": "0755", "Conflicts": "cpupower.service shutdown.target", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "887", "ExecMainStartTimestamp": "Wed 2020-11-11 02:32:07 UTC", "ExecMainStartTimestampMonotonic": "4784454", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-11-11 02:32:07 UTC] ; stop_time=[n/a] ; pid=887 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[Wed 2020-11-11 02:32:07 UTC] ; stop_time=[n/a] ; pid=887 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 02:32:07 UTC", "InactiveExitTimestampMonotonic": "4784633", "InvocationID": "a6b061e19ffd4952a8175bfa24aea4ab", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "887", "MemoryAccounting": "yes", "MemoryCurrent": "24342528", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "polkit.service system.slice dbus-broker.service sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-11-11 02:32:07 UTC", "StateChangeTimestampMonotonic": "5009729", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 ok: [/cache/fedora-31.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 ok: [/cache/fedora-31.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/home/tester/.ansible/tmp/ansible-local-325246iw8cm5ih/tmpctcwen_d/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/fedora-31.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/fedora-31.qcow2 changed: [/cache/fedora-31.qcow2] => {"active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "msg": "Kernel settings were updated.", "new_profile": {"sysctl": {"fs.epoll.max_user_watches": "785592", "vm.max_map_count": "65530"}, "sysfs": {"/sys/class/net/lo/mtu": "65000", "/sys/fs/selinux/avc/cache_threshold": "256", "/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0"}}, "reboot_required": false} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "virtual-guest kernel_settings"], "delta": "0:00:01.132137", "end": "2020-11-11 02:32:23.103516", "rc": 0, "start": "2020-11-11 02:32:21.971379", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 included: /tmp/tmph8xfueks/tasks/verify_settings.yml for /cache/fedora-31.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.112157", "end": "2020-11-11 02:32:23.569080", "rc": 0, "start": "2020-11-11 02:32:23.456923", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:24 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:77 changed: [/cache/fedora-31.qcow2] => {"changed": true, "elapsed": 14, "rebooted": true} TASK [check sysctl after reboot] *********************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:81 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n fs.file-max | grep -Lxvq 400000", "delta": "0:00:00.006608", "end": "2020-11-11 02:32:39.578054", "rc": 0, "start": "2020-11-11 02:32:39.571446", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [apply kernel_settings for removing] ************************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:84 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 ok: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ActiveEnterTimestampMonotonic": "4995710", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket systemd-sysctl.service systemd-journald.socket network.target dbus-broker.service sysinit.target system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 02:32:33 UTC", "AssertTimestampMonotonic": "4789848", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "182115000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ConditionTimestampMonotonic": "4789847", "ConfigurationDirectoryMode": "0755", "Conflicts": "cpupower.service shutdown.target", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "890", "ExecMainStartTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ExecMainStartTimestampMonotonic": "4790815", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-11-11 02:32:33 UTC] ; stop_time=[n/a] ; pid=890 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[Wed 2020-11-11 02:32:33 UTC] ; stop_time=[n/a] ; pid=890 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 02:32:33 UTC", "InactiveExitTimestampMonotonic": "4791012", "InvocationID": "fdbbb79f8d3d446ead16ae8099f44d55", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "890", "MemoryAccounting": "yes", "MemoryCurrent": "24076288", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket dbus-broker.service system.slice polkit.service sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-11-11 02:32:33 UTC", "StateChangeTimestampMonotonic": "4995710", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 ok: [/cache/fedora-31.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 ok: [/cache/fedora-31.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/home/tester/.ansible/tmp/ansible-local-325246iw8cm5ih/tmpavrk41xw/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/fedora-31.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/fedora-31.qcow2 changed: [/cache/fedora-31.qcow2] => {"active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "msg": "Kernel settings were updated.", "new_profile": {"sysctl": {"fs.epoll.max_user_watches": "785592", "fs.file-max": "400001", "vm.max_map_count": "65530"}, "sysfs": {"/sys/class/net/lo/mtu": "60666", "/sys/fs/selinux/avc/cache_threshold": "256", "/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0"}}, "reboot_required": false} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "virtual-guest kernel_settings"], "delta": "0:00:01.138733", "end": "2020-11-11 02:32:47.465706", "rc": 0, "start": "2020-11-11 02:32:46.326973", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 included: /tmp/tmph8xfueks/tasks/verify_settings.yml for /cache/fedora-31.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.111475", "end": "2020-11-11 02:32:47.942127", "rc": 0, "start": "2020-11-11 02:32:47.830652", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:24 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check sysctl] ************************************************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:95 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n fs.file-max | grep -qx 400001", "delta": "0:00:00.004991", "end": "2020-11-11 02:32:48.425718", "rc": 0, "start": "2020-11-11 02:32:48.420727", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [check sysfs after role runs] ********************************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:98 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["grep", "-x", "60666", "/sys/class/net/lo/mtu"], "delta": "0:00:00.003590", "end": "2020-11-11 02:32:48.761049", "rc": 0, "start": "2020-11-11 02:32:48.757459", "stderr": "", "stderr_lines": [], "stdout": "60666", "stdout_lines": ["60666"]} TASK [apply kernel_settings for removing section] ****************************** task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:101 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 ok: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ActiveEnterTimestampMonotonic": "4995710", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket systemd-sysctl.service systemd-journald.socket network.target dbus-broker.service sysinit.target system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 02:32:33 UTC", "AssertTimestampMonotonic": "4789848", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "235681000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ConditionTimestampMonotonic": "4789847", "ConfigurationDirectoryMode": "0755", "Conflicts": "cpupower.service shutdown.target", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "890", "ExecMainStartTimestamp": "Wed 2020-11-11 02:32:33 UTC", "ExecMainStartTimestampMonotonic": "4790815", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-11-11 02:32:33 UTC] ; stop_time=[n/a] ; pid=890 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[Wed 2020-11-11 02:32:33 UTC] ; stop_time=[n/a] ; pid=890 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 02:32:33 UTC", "InactiveExitTimestampMonotonic": "4791012", "InvocationID": "fdbbb79f8d3d446ead16ae8099f44d55", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "890", "MemoryAccounting": "yes", "MemoryCurrent": "26071040", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket dbus-broker.service system.slice polkit.service sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-11-11 02:32:33 UTC", "StateChangeTimestampMonotonic": "4995710", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 ok: [/cache/fedora-31.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 ok: [/cache/fedora-31.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/home/tester/.ansible/tmp/ansible-local-325246iw8cm5ih/tmprpkbu2m5/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/fedora-31.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/fedora-31.qcow2 changed: [/cache/fedora-31.qcow2] => {"active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "msg": "Kernel settings were updated.", "new_profile": {}, "reboot_required": false} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "virtual-guest kernel_settings"], "delta": "0:00:01.124317", "end": "2020-11-11 02:32:56.440628", "rc": 0, "start": "2020-11-11 02:32:55.316311", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 included: /tmp/tmph8xfueks/tasks/verify_settings.yml for /cache/fedora-31.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.120604", "end": "2020-11-11 02:32:56.932740", "rc": 0, "start": "2020-11-11 02:32:56.812136", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:24 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check sysctl] ************************************************************ task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:110 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": "sysctl -n fs.file-max | grep -Lvxq 400001", "delta": "0:00:00.004509", "end": "2020-11-11 02:32:57.389776", "rc": 0, "start": "2020-11-11 02:32:57.385267", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [check sysfs after role runs] ********************************************* task path: /tmp/tmph8xfueks/tests/tests_change_settings.yml:113 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["grep", "-Lxqv", "60666", "/sys/class/net/lo/mtu"], "delta": "0:00:01.004491", "end": "2020-11-11 02:32:58.713403", "rc": 0, "start": "2020-11-11 02:32:57.708912", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmph8xfueks/handlers/main.yml:2 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmph8xfueks/handlers/main.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmph8xfueks/handlers/main.yml:2 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmph8xfueks/handlers/main.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmph8xfueks/handlers/main.yml:2 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmph8xfueks/handlers/main.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmph8xfueks/handlers/main.yml:2 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmph8xfueks/handlers/main.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=57 changed=27 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0 + cd /tmp/tmph8xfueks/tests; TEST_SUBJECTS=/cache/fedora-31.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-38-e9079fa-fedora-31-4jurc5p3/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmph8xfueks/_setup.yml /tmp/tmph8xfueks/tests/tests_default.yml ansible-playbook 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmph8xfueks/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph8xfueks/_setup.yml:5 ok: [/cache/fedora-31.qcow2] => { "groups": { "all": [ "/cache/fedora-31.qcow2" ], "localhost": [ "/cache/fedora-31.qcow2" ], "subjects": [ "/cache/fedora-31.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph8xfueks/_setup.yml:7 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmph8xfueks/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph8xfueks/tests/tests_default.yml:2 ok: [/cache/fedora-31.qcow2] META: ran handlers TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 changed: [/cache/fedora-31.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: pciutils-libs-3.6.4-1.fc31.x86_64", "Installed: python3-decorator-4.4.0-2.fc31.noarch", "Installed: kernel-tools-5.8.18-200.fc31.x86_64", "Installed: kernel-tools-libs-5.8.18-200.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: polkit-0.116-4.fc31.x86_64", "Installed: polkit-pkla-compat-0.1-15.fc31.x86_64", "Installed: mozjs60-60.9.0-5.fc31.x86_64", "Installed: dmidecode-1:3.2-3.fc31.x86_64", "Installed: hdparm-9.58-2.fc31.x86_64", "Installed: virt-what-1.19-3.fc31.x86_64", "Installed: python3-libxml2-2.9.9-3.fc31.x86_64", "Installed: python3-perf-5.8.18-200.fc31.x86_64", "Installed: python3-linux-procfs-0.6.1-3.fc31.noarch", "Installed: python3-schedutils-0.6-8.fc31.x86_64", "Installed: python3-dmidecode-3.12.2-16.fc31.x86_64", "Installed: tuned-2.14.0-2.fc31.noarch", "Installed: numactl-libs-2.0.12-3.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: ethtool-2:5.9-1.fc31.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 changed: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-sysctl.service sysinit.target systemd-journald.socket network.target system.slice dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "polkit.service dbus.socket system.slice sysinit.target dbus-broker.service", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1605062047.626258-326536-277001879728287/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=7 changed=4 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmph8xfueks/tests; TEST_SUBJECTS=/cache/fedora-31.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-38-e9079fa-fedora-31-4jurc5p3/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmph8xfueks/_setup.yml /tmp/tmph8xfueks/tests/tests_include_vars_from_parent.yml ansible-playbook 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmph8xfueks/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph8xfueks/_setup.yml:5 ok: [/cache/fedora-31.qcow2] => { "groups": { "all": [ "/cache/fedora-31.qcow2" ], "localhost": [ "/cache/fedora-31.qcow2" ], "subjects": [ "/cache/fedora-31.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph8xfueks/_setup.yml:7 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmph8xfueks/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph8xfueks/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/fedora-31.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmph8xfueks/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/fedora-31.qcow2] => (item=Fedora-31) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmph8xfueks/tests/roles/caller/vars/Fedora-31.yml", "gid": 0, "group": "root", "item": "Fedora-31", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1605062070.2001524-326727-197228004385874/source", "state": "file", "uid": 0} changed: [/cache/fedora-31.qcow2] => (item=Fedora_31) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmph8xfueks/tests/roles/caller/vars/Fedora_31.yml", "gid": 0, "group": "root", "item": "Fedora_31", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1605062070.7707622-326727-176311912395010/source", "state": "file", "uid": 0} changed: [/cache/fedora-31.qcow2] => (item=Fedora) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmph8xfueks/tests/roles/caller/vars/Fedora.yml", "gid": 0, "group": "root", "item": "Fedora", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1605062071.0984943-326727-200209789524160/source", "state": "file", "uid": 0} changed: [/cache/fedora-31.qcow2] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmph8xfueks/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1605062071.4204667-326727-92017886264237/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmph8xfueks/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 changed: [/cache/fedora-31.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: pciutils-libs-3.6.4-1.fc31.x86_64", "Installed: python3-decorator-4.4.0-2.fc31.noarch", "Installed: kernel-tools-5.8.18-200.fc31.x86_64", "Installed: kernel-tools-libs-5.8.18-200.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: polkit-0.116-4.fc31.x86_64", "Installed: polkit-pkla-compat-0.1-15.fc31.x86_64", "Installed: mozjs60-60.9.0-5.fc31.x86_64", "Installed: dmidecode-1:3.2-3.fc31.x86_64", "Installed: hdparm-9.58-2.fc31.x86_64", "Installed: virt-what-1.19-3.fc31.x86_64", "Installed: python3-libxml2-2.9.9-3.fc31.x86_64", "Installed: python3-perf-5.8.18-200.fc31.x86_64", "Installed: python3-linux-procfs-0.6.1-3.fc31.noarch", "Installed: python3-schedutils-0.6-8.fc31.x86_64", "Installed: python3-dmidecode-3.12.2-16.fc31.x86_64", "Installed: tuned-2.14.0-2.fc31.noarch", "Installed: numactl-libs-2.0.12-3.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: ethtool-2:5.9-1.fc31.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 changed: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target sysinit.target systemd-journald.socket dbus.socket system.slice systemd-sysctl.service dbus-broker.service network.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket dbus-broker.service sysinit.target system.slice polkit.service", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1605062116.9110582-326929-98692758485039/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [caller : assert] ********************************************************* task path: /tmp/tmph8xfueks/tests/roles/caller/tasks/main.yml:7 ok: [/cache/fedora-31.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=9 changed=5 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmph8xfueks/tests; TEST_SUBJECTS=/cache/fedora-31.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-38-e9079fa-fedora-31-4jurc5p3/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmph8xfueks/_setup.yml /tmp/tmph8xfueks/tests/tests_simple_settings.yml ansible-playbook 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmph8xfueks/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph8xfueks/_setup.yml:5 ok: [/cache/fedora-31.qcow2] => { "groups": { "all": [ "/cache/fedora-31.qcow2" ], "localhost": [ "/cache/fedora-31.qcow2" ], "subjects": [ "/cache/fedora-31.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph8xfueks/_setup.yml:7 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmph8xfueks/tests/tests_simple_settings.yml PLAY [test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:2 ok: [/cache/fedora-31.qcow2] META: ran handlers TASK [set platform independent vars used by this test] ************************* task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:5 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_blcmdline_value": "spectre_v2=off nopti panic=10001", "__kernel_settings_check_reboot": true, "__kernel_settings_profile_file": "# File managed by Ansible - DO NOT EDIT\n[main]\nsummary = kernel settings\n[sysctl]\nfs.epoll.max_user_watches = 785592\nfs.file-max = 379724\n[vm]\ntransparent_hugepages = madvise\n[sysfs]\n/sys/kernel/debug/x86/ibrs_enabled = 0\n/sys/kernel/debug/x86/pti_enabled = 0\n/sys/kernel/debug/x86/retp_enabled = 0\n{% if __kernel_settings_blcmdline_value | d() %}\n[bootloader]\ncmdline = {{ __kernel_settings_blcmdline_value }}\n{% endif %}\n", "kernel_settings_bootloader_cmdline": [{"name": "spectre_v2", "value": "off"}, {"name": "nopti"}, {"name": "notfound", "state": "absent"}, {"name": "panic", "value": 10001}], "kernel_settings_sysctl": [{"name": "fs.epoll.max_user_watches", "value": 785592}, {"name": "fs.file-max", "value": 379724}, {"name": "no.such.param", "state": "absent"}], "kernel_settings_sysfs": [{"name": "/sys/kernel/debug/x86/pti_enabled", "value": 0}, {"name": "/sys/kernel/debug/x86/retp_enabled", "value": 0}, {"name": "/sys/kernel/debug/x86/ibrs_enabled", "value": 0}, {"name": "/sys/not/found", "state": "absent"}], "kernel_settings_systemd_cpu_affinity": {"state": "absent"}, "kernel_settings_transparent_hugepages": "madvise", "kernel_settings_transparent_hugepages_defrag": {"state": "absent"}}, "ansible_included_var_files": ["/tmp/tmph8xfueks/tests/vars/vars_simple_settings.yml"], "changed": false} TASK [disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:9 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_blcmdline_value": null, "__kernel_settings_check_reboot": false, "kernel_settings_bootloader_cmdline": null}, "changed": false} TASK [apply the settings - call the role] ************************************** task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:20 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmph8xfueks/tasks/main.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmph8xfueks/tasks/main.yml:17 changed: [/cache/fedora-31.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: pciutils-libs-3.6.4-1.fc31.x86_64", "Installed: python3-decorator-4.4.0-2.fc31.noarch", "Installed: kernel-tools-5.8.18-200.fc31.x86_64", "Installed: kernel-tools-libs-5.8.18-200.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: polkit-0.116-4.fc31.x86_64", "Installed: polkit-pkla-compat-0.1-15.fc31.x86_64", "Installed: mozjs60-60.9.0-5.fc31.x86_64", "Installed: dmidecode-1:3.2-3.fc31.x86_64", "Installed: hdparm-9.58-2.fc31.x86_64", "Installed: virt-what-1.19-3.fc31.x86_64", "Installed: python3-libxml2-2.9.9-3.fc31.x86_64", "Installed: python3-perf-5.8.18-200.fc31.x86_64", "Installed: python3-linux-procfs-0.6.1-3.fc31.noarch", "Installed: python3-schedutils-0.6-8.fc31.x86_64", "Installed: python3-dmidecode-3.12.2-16.fc31.x86_64", "Installed: tuned-2.14.0-2.fc31.noarch", "Installed: numactl-libs-2.0.12-3.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: ethtool-2:5.9-1.fc31.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmph8xfueks/tasks/main.yml:22 changed: [/cache/fedora-31.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket sysinit.target systemd-journald.socket system.slice dbus-broker.service systemd-sysctl.service network.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7776", "LimitNPROCSoft": "7776", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7776", "LimitSIGPENDINGSoft": "7776", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target polkit.service dbus.socket system.slice dbus-broker.service", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2332", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmph8xfueks/tasks/main.yml:29 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmph8xfueks/tasks/main.yml:35 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1605062185.052513-327237-261656104056760/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmph8xfueks/tasks/main.yml:42 NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/fedora-31.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/fedora-31.qcow2 changed: [/cache/fedora-31.qcow2] => {"active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "msg": "Kernel settings were updated.", "new_profile": {"sysctl": {"fs.epoll.max_user_watches": "785592", "fs.file-max": "379724"}, "sysfs": {"/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0"}, "vm": {"transparent_hugepages": "madvise"}}, "reboot_required": false} TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmph8xfueks/tasks/main.yml:89 changed: [/cache/fedora-31.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "virtual-guest kernel_settings"], "delta": "0:00:01.150304", "end": "2020-11-11 02:36:28.155540", "rc": 0, "start": "2020-11-11 02:36:27.005236", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmph8xfueks/tasks/main.yml:94 included: /tmp/tmph8xfueks/tasks/verify_settings.yml for /cache/fedora-31.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.115600", "end": "2020-11-11 02:36:28.634213", "rc": 0, "start": "2020-11-11 02:36:28.518613", "stderr": "", "stderr_lines": [], "stdout": "Verfication succeeded, current system settings match the preset profile.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verfication succeeded, current system settings match the preset profile.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmph8xfueks/tasks/verify_settings.yml:24 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:98 skipping: [/cache/fedora-31.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmph8xfueks/tasks/main.yml:107 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [verify that settings were applied correctly] ***************************** task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:25 included: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml for /cache/fedora-31.qcow2 TASK [Set version specific variables] ****************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:2 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": ["python", "python-configobj"]}, "ansible_included_var_files": ["/tmp/tmph8xfueks/tests/vars/tests_default.yml"], "changed": false} TASK [reset settings success flag] ********************************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:13 ok: [/cache/fedora-31.qcow2] => {"ansible_facts": {"__kernel_settings_success": true}, "changed": false} TASK [check tuned-adm verify] ************************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:17 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check for verify errors] ************************************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:23 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check /proc/cmdline] ***************************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:29 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set error flag based on verify] ****************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:35 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [include_tasks] *********************************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:42 included: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml for /cache/fedora-31.qcow2 TASK [create temporary file for expected config] ******************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:2 changed: [/cache/fedora-31.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible._yh0b93g.kernel_settings", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0} TASK [put expected contents into temporary file] ******************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:8 changed: [/cache/fedora-31.qcow2] => {"changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible._yh0b93g.kernel_settings", "gid": 0, "group": "root", "md5sum": "b82bbe3a22d81e7a442595a59b2d0944", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 299, "src": "/root/.ansible/tmp/ansible-tmp-1605062189.6538317-327355-219588844315268/source", "state": "file", "uid": 0} TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:13 ok: [/cache/fedora-31.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [diff expected vs actual content] ***************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:18 ok: [/cache/fedora-31.qcow2] => {"changed": false, "cmd": "python -c 'import sys\nfrom configobj import ConfigObj\nc1 = ConfigObj(sys.argv[1])\nc2 = ConfigObj(sys.argv[2])\nsys.exit(not c1 == c2)' /tmp/ansible._yh0b93g.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.029999", "end": "2020-11-11 02:36:34.856121", "rc": 0, "start": "2020-11-11 02:36:34.826122", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [verify expected content] ************************************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:31 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:36 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get active_profile file] ************************************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:43 ok: [/cache/fedora-31.qcow2] => {"changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile"} TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:50 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get profile_mode file] *************************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:57 ok: [/cache/fedora-31.qcow2] => {"changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode"} TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:64 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:72 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [verify bootloader settings value] **************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings_conf_files.yml:83 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:45 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [assert success] ********************************************************** task path: /tmp/tmph8xfueks/tests/tasks/assert_kernel_settings.yml:52 ok: [/cache/fedora-31.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:32 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [verify that settings were applied correctly after reboot] **************** task path: /tmp/tmph8xfueks/tests/tests_simple_settings.yml:39 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmph8xfueks/handlers/main.yml:2 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmph8xfueks/handlers/main.yml:12 skipping: [/cache/fedora-31.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-31.qcow2 : ok=24 changed=8 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0