ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml PLAY [Test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:2 Saturday 03 August 2024 04:26:30 -0400 (0:00:00.018) 0:00:00.018 ******* ok: [managed_node1] META: ran handlers TASK [Set platform independent vars used by this test] ************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:8 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.939) 0:00:00.958 ******* ok: [managed_node1] => { "ansible_facts": { "__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_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/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/vars/vars_simple_settings.yml" ], "changed": false } TASK [Disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:12 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.014) 0:00:00.972 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Apply the settings - call the role] ************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:23 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.033) 0:00:01.005 ******* TASK [fedora.linux_system_roles.kernel_settings : Set version specific variables] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:2 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.072) 0:00:01.078 ******* included: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.021) 0:00:01.099 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Check if system is ostree] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:10 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.036) 0:00:01.136 ******* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.kernel_settings : Set flag to indicate system is ostree] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:15 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.463) 0:00:01.600 ******* ok: [managed_node1] => { "ansible_facts": { "__kernel_settings_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Check if transactional-update exists in /sbin] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:22 Saturday 03 August 2024 04:26:31 -0400 (0:00:00.061) 0:00:01.661 ******* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.kernel_settings : Set flag if transactional-update exists] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:27 Saturday 03 August 2024 04:26:32 -0400 (0:00:00.387) 0:00:02.049 ******* ok: [managed_node1] => { "ansible_facts": { "__kernel_settings_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Set platform/version specific variables] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:31 Saturday 03 August 2024 04:26:32 -0400 (0:00:00.037) 0:00:02.086 ******* ok: [managed_node1] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python3-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/vars/default.yml" ], "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 Saturday 03 August 2024 04:26:32 -0400 (0:00:00.042) 0:00:02.129 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-configobj tuned TASK [fedora.linux_system_roles.kernel_settings : Notify user that reboot is needed to apply changes] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:17 Saturday 03 August 2024 04:26:35 -0400 (0:00:02.786) 0:00:04.915 ******* skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.kernel_settings : Reboot transactional update systems] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:22 Saturday 03 August 2024 04:26:35 -0400 (0:00:00.034) 0:00:04.949 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Fail if reboot is needed and not set] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:27 Saturday 03 August 2024 04:26:35 -0400 (0:00:00.034) 0:00:04.984 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:35 Saturday 03 August 2024 04:26:35 -0400 (0:00:00.035) 0:00:05.019 ******* ok: [managed_node1] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-03 04:25:32 EDT", "ActiveEnterTimestampMonotonic": "9446717", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket systemd-journald.socket sysinit.target network.target systemd-sysctl.service dbus.service system.slice basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 04:25:31 EDT", "AssertTimestampMonotonic": "8480591", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "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 cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-03 04:25:31 EDT", "ConditionTimestampMonotonic": "8480590", "ConfigurationDirectoryMode": "0755", "Conflicts": "auto-cpufreq.service tlp.service shutdown.target power-profiles-daemon.service 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", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "658", "ExecMainStartTimestamp": "Sat 2024-08-03 04:25:31 EDT", "ExecMainStartTimestampMonotonic": "8482606", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Sat 2024-08-03 04:25:31 EDT] ; stop_time=[n/a] ; pid=658 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-03 04:25:31 EDT", "InactiveExitTimestampMonotonic": "8482663", "InvocationID": "51e37cbdfa094b80ab232903ae7ae755", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "658", "MemoryAccounting": "yes", "MemoryCurrent": "20885504", "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", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.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]", "StateChangeTimestamp": "Sat 2024-08-03 04:25:32 EDT", "StateChangeTimestampMonotonic": "9446717", "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": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-03 04:25:32 EDT", "WatchdogTimestampMonotonic": "9446714", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:42 Saturday 03 August 2024 04:26:36 -0400 (0:00:00.687) 0:00:05.707 ******* ok: [managed_node1] => { "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": 24, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:48 Saturday 03 August 2024 04:26:36 -0400 (0:00:00.486) 0:00:06.194 ******* ok: [managed_node1] => { "changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-94160e8t8766/tmpc399b7g2/kernel_settings.j2" } TASK [fedora.linux_system_roles.kernel_settings : Get current config] ********** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:55 Saturday 03 August 2024 04:26:36 -0400 (0:00:00.389) 0:00:06.583 ******* ok: [managed_node1] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6a2VybmVsX3NldHRpbmdzClttYWluXQpzdW1tYXJ5ID0ga2VybmVsIHNldHRpbmdzCg==", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [fedora.linux_system_roles.kernel_settings : Apply kernel settings] ******* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:61 Saturday 03 August 2024 04:26:37 -0400 (0:00:00.469) 0:00:07.052 ******* NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : Reboot the managed host to apply kernel_settings changes for managed_node1 NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : Clear the kernel_settings_reboot_required flag for managed_node1 changed: [managed_node1] => { "active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "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 } MSG: Kernel settings were updated. TASK [fedora.linux_system_roles.kernel_settings : Tuned apply settings] ******** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:90 Saturday 03 August 2024 04:26:37 -0400 (0:00:00.592) 0:00:07.644 ******* changed: [managed_node1] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.147628", "end": "2024-08-03 04:26:39.511053", "rc": 0, "start": "2024-08-03 04:26:38.363425" } TASK [fedora.linux_system_roles.kernel_settings : Verify settings] ************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:96 Saturday 03 August 2024 04:26:39 -0400 (0:00:01.621) 0:00:09.266 ******* included: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml for managed_node1 TASK [fedora.linux_system_roles.kernel_settings : Check that settings are applied correctly] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 Saturday 03 August 2024 04:26:39 -0400 (0:00:00.041) 0:00:09.307 ******* ok: [managed_node1] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.117449", "end": "2024-08-03 04:26:40.028900", "rc": 0, "start": "2024-08-03 04:26:39.911451" } STDOUT: Verification succeeded, current system settings match the preset profile. See TuneD log file ('/var/log/tuned/tuned.log') for details. TASK [fedora.linux_system_roles.kernel_settings : Get last verify results from log] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:12 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.476) 0:00:09.783 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Report errors that are not bootloader errors] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:23 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.034) 0:00:09.818 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Notify user that reboot is needed to apply changes] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:100 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.035) 0:00:09.854 ******* skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.kernel_settings : Set the flag that reboot is needed to apply changes] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:109 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.032) 0:00:09.886 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that settings were applied correctly] ***************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:28 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.035) 0:00:09.922 ******* included: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml for managed_node1 TASK [Set version specific variables] ****************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:2 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.022) 0:00:09.944 ******* ok: [managed_node1] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "/usr/libexec/platform-python", "__kernel_settings_test_python_pkgs": [ "python3-configobj" ] }, "ansible_included_var_files": [ "/tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/vars/tests_default.yml" ], "changed": false } TASK [Reset settings success flag] ********************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:13 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.040) 0:00:09.985 ******* ok: [managed_node1] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [Check tuned-adm verify] ************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:17 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.013) 0:00:09.999 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check for verify errors] ************************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:24 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.010) 0:00:10.009 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check /proc/cmdline] ***************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:31 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.036) 0:00:10.046 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set error flag based on verify] ****************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:38 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.034) 0:00:10.080 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check config files] ****************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:45 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.035) 0:00:10.116 ******* included: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml for managed_node1 TASK [Create temporary file for expected config] ******************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.048) 0:00:10.165 ******* changed: [managed_node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.t9lks14r.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/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 Saturday 03 August 2024 04:26:40 -0400 (0:00:00.450) 0:00:10.616 ******* changed: [managed_node1] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible.t9lks14r.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-1722673600.9728982-9579-22497830365959/source", "state": "file", "uid": 0 } TASK [Ensure python command exists for tests below] **************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 Saturday 03 August 2024 04:26:41 -0400 (0:00:00.826) 0:00:11.443 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-configobj TASK [Diff expected vs actual content] ***************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:20 Saturday 03 August 2024 04:26:44 -0400 (0:00:02.739) 0:00:14.182 ******* ok: [managed_node1] => { "changed": false, "cmd": "/usr/libexec/platform-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.t9lks14r.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.034411", "end": "2024-08-03 04:26:44.844086", "rc": 0, "start": "2024-08-03 04:26:44.809675" } TASK [Verify expected content] ************************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:33 Saturday 03 August 2024 04:26:44 -0400 (0:00:00.415) 0:00:14.598 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:38 Saturday 03 August 2024 04:26:44 -0400 (0:00:00.035) 0:00:14.633 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get active_profile file] ************************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:46 Saturday 03 August 2024 04:26:44 -0400 (0:00:00.033) 0:00:14.667 ******* ok: [managed_node1] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [Check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:53 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.356) 0:00:15.024 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get profile_mode file] *************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:60 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.034) 0:00:15.059 ******* ok: [managed_node1] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [Check that profile_mode is manual] *************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:67 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.358) 0:00:15.418 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the bootloader specific config file] ********************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:74 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.036) 0:00:15.454 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify bootloader settings value] **************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:85 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.034) 0:00:15.488 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:49 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.035) 0:00:15.523 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert success] ********************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings.yml:56 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.032) 0:00:15.556 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Check ansible_managed, fingerprint in generated files] ******************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:33 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.036) 0:00:15.592 ******* included: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/check_header.yml for managed_node1 TASK [Get file] **************************************************************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/check_header.yml:3 Saturday 03 August 2024 04:26:45 -0400 (0:00:00.021) 0:00:15.614 ******* ok: [managed_node1] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6a2VybmVsX3NldHRpbmdzClttYWluXQpzdW1tYXJ5ID0ga2VybmVsIHNldHRpbmdzCltzeXNjdGxdCmZzLmVwb2xsLm1heF91c2VyX3dhdGNoZXMgPSA3ODU1OTIKZnMuZmlsZS1tYXggPSAzNzk3MjQKW3N5c2ZzXQovc3lzL2tlcm5lbC9kZWJ1Zy94ODYvcHRpX2VuYWJsZWQgPSAwCi9zeXMva2VybmVsL2RlYnVnL3g4Ni9yZXRwX2VuYWJsZWQgPSAwCi9zeXMva2VybmVsL2RlYnVnL3g4Ni9pYnJzX2VuYWJsZWQgPSAwClt2bV0KdHJhbnNwYXJlbnRfaHVnZXBhZ2VzID0gbWFkdmlzZQo=", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/check_header.yml:9 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.389) 0:00:16.003 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:41 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.049) 0:00:16.053 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that settings were applied correctly after reboot] **************** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:48 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.032) 0:00:16.086 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show contents of tuned.conf] ********************************************* task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:57 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.035) 0:00:16.121 ******* ok: [managed_node1] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002378", "end": "2024-08-03 04:26:46.725179", "rc": 0, "start": "2024-08-03 04:26:46.722801" } STDOUT: # # Ansible managed # # system_role:kernel_settings [main] summary = kernel settings [sysctl] fs.epoll.max_user_watches = 785592 fs.file-max = 379724 [sysfs] /sys/kernel/debug/x86/pti_enabled = 0 /sys/kernel/debug/x86/retp_enabled = 0 /sys/kernel/debug/x86/ibrs_enabled = 0 [vm] transparent_hugepages = madvise RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : Reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:2 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.354) 0:00:16.475 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : Clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:12 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.033) 0:00:16.509 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=32 changed=4 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 03 August 2024 04:26:46 -0400 (0:00:00.034) 0:00:16.543 ******* =============================================================================== fedora.linux_system_roles.kernel_settings : Ensure required packages are installed --- 2.79s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 Ensure python command exists for tests below ---------------------------- 2.74s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 fedora.linux_system_roles.kernel_settings : Tuned apply settings -------- 1.62s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.94s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:2 Put expected contents into temporary file ------------------------------- 0.83s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started --- 0.69s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:35 fedora.linux_system_roles.kernel_settings : Apply kernel settings ------- 0.59s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:61 fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists --- 0.49s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:42 fedora.linux_system_roles.kernel_settings : Check that settings are applied correctly --- 0.48s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 fedora.linux_system_roles.kernel_settings : Get current config ---------- 0.47s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:55 fedora.linux_system_roles.kernel_settings : Check if system is ostree --- 0.46s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:10 Create temporary file for expected config ------------------------------- 0.45s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 Diff expected vs actual content ----------------------------------------- 0.42s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:20 Get file ---------------------------------------------------------------- 0.39s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/check_header.yml:3 fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings --- 0.39s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:48 fedora.linux_system_roles.kernel_settings : Check if transactional-update exists in /sbin --- 0.39s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:22 Get profile_mode file --------------------------------------------------- 0.36s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:60 Get active_profile file ------------------------------------------------- 0.36s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:46 Show contents of tuned.conf --------------------------------------------- 0.35s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:57 Apply the settings - call the role -------------------------------------- 0.07s /tmp/tmp.dglrlZOuNW/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_simple_settings.yml:23