ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file 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_change_settings.yml ******************************************** 1 plays in /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml PLAY [Test changing settings] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:2 ok: [managed-node1] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:12 ok: [managed-node1] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:17 ok: [managed-node1] => {"ansible_facts": {"__kernel_settings_is_ostree": false}, "changed": false} TASK [Ensure required packages are installed] ********************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:22 ok: [managed-node1] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-2.11.0-12.el7_9.noarch providing tuned is already installed", "procps-ng-3.3.10-28.el7.x86_64 providing procps-ng is already installed"]} TASK [See if tuned has a profile subdir] *************************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:28 ok: [managed-node1] => {"changed": false, "stat": {"exists": false}} TASK [Set profile dir] ********************************************************* task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:33 ok: [managed-node1] => {"ansible_facts": {"__profile_dir": "/etc/tuned/kernel_settings"}, "changed": false} TASK [Ensure kernel settings profile directory exists] ************************* task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:39 changed: [managed-node1] => {"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/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:45 changed: [managed-node1] => {"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-1727202029.83-10248-271690811991356/source", "state": "file", "uid": 0} TASK [Ensure required services are enabled and started] ************************ task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:51 changed: [managed-node1] => {"changed": true, "enabled": true, "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2024-09-24 14:15:34 EDT", "ActiveEnterTimestampMonotonic": "30951765", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice network.target systemd-sysctl.service systemd-journald.socket basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 14:15:32 EDT", "AssertTimestampMonotonic": "29204424", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-09-24 14:15:32 EDT", "ConditionTimestampMonotonic": "29204423", "Conflicts": "shutdown.target cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "850", "ExecMainStartTimestamp": "Tue 2024-09-24 14:15:32 EDT", "ExecMainStartTimestampMonotonic": "29205565", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Tue 2024-09-24 14:15:32 EDT] ; stop_time=[n/a] ; pid=850 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-09-24 14:15:32 EDT", "InactiveExitTimestampMonotonic": "29205599", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "850", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target polkit.service system.slice dbus.service", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Tue 2024-09-24 14:15:34 EDT", "WatchdogTimestampMonotonic": "30951343", "WatchdogUSec": "0"}} TASK [Apply kernel_settings] *************************************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:57 ERROR! the role 'fedora.linux_system_roles.kernel_settings' was not found in /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings The error appears to be in '/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml': line 59, column 19, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.kernel_settings ^ here TASK [Cleanup] ***************************************************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tests_change_settings.yml:213 included: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml for managed-node1 TASK [Show current tuned profile settings] ************************************* task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml:2 fatal: [managed-node1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: '__kernel_settings_profile_filename' is undefined\n\nThe error appears to be in '/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Show current tuned profile settings\n ^ here\n"} ...ignoring TASK [Run role with purge to remove everything] ******************************** task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml:9 ERROR! the role 'fedora.linux_system_roles.kernel_settings' was not found in /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings The error appears to be in '/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml': line 11, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.kernel_settings ^ here TASK [Remove kernel_settings tuned profile] ************************************ task path: /tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml:36 fatal: [managed-node1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: '__kernel_settings_profile_dir' is undefined\n\nThe error appears to be in '/tmp/collections-SZE/ansible_collections/fedora/linux_system_roles/tests/kernel_settings/tasks/cleanup.yml': line 36, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n always:\n - name: Remove kernel_settings tuned profile\n ^ here\n"} PLAY RECAP ********************************************************************* managed-node1 : ok=11 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=1