+ cd /tmp/tmpwxzj61lt/tests; TEST_SUBJECTS=/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-centos-6-tmc18357/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpwxzj61lt/_setup.yml /tmp/tmpwxzj61lt/tests/tests_default.yml ansible-playbook 2.9.11 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.5 (default, Aug 12 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/tmpwxzj61lt/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpwxzj61lt/_setup.yml:5 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "groups": { "all": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "localhost": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "subjects": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpwxzj61lt/_setup.yml:7 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpwxzj61lt/tests/tests_default.yml PLAY [Ensure the default profile is "balanced"] ******************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_default.yml:2 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:2 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "changes": {"installed": ["tuned"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror, presto\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: linux.cc.lehigh.edu\n * extras: mirror.datto.com\n * updates: mirror.nodesdirect.com\nResolving Dependencies\n--> Running transaction check\n---> Package tuned.noarch 0:0.2.19-18.el6 will be installed\n--> Processing Dependency: usermode for package: tuned-0.2.19-18.el6.noarch\n--> Running transaction check\n---> Package usermode.x86_64 0:1.102-3.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n tuned noarch 0.2.19-18.el6 base 95 k\nInstalling for dependencies:\n usermode x86_64 1.102-3.el6 base 187 k\n\nTransaction Summary\n================================================================================\nInstall 2 Package(s)\n\nTotal download size: 282 k\nInstalled size: 1.0 M\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 282 k\n--------------------------------------------------------------------------------\nTotal 2.3 MB/s | 282 kB 00:00 \nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n\r Installing : usermode-1.102-3.el6.x86_64 1/2 \n\r Installing : tuned-0.2.19-18.el6.noarch 2/2 \n\r Verifying : tuned-0.2.19-18.el6.noarch 1/2 \n\r Verifying : usermode-1.102-3.el6.x86_64 2/2 \n\nInstalled:\n tuned.noarch 0:0.2.19-18.el6 \n\nDependency Installed:\n usermode.x86_64 0:1.102-3.el6 \n\nComplete!\n"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:5 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:8 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.026664", "end": "2020-08-30 19:17:24.352935", "rc": 0, "start": "2020-08-30 19:17:24.326271", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:12 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:15 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:20 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.023302", "end": "2020-08-30 19:17:24.735408", "rc": 0, "start": "2020-08-30 19:17:24.712106", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:24 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:27 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.473609", "end": "2020-08-30 19:17:25.548222", "rc": 0, "start": "2020-08-30 19:17:25.074613", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying ktune sysctl settings:\n/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying sysctl settings from /etc/sysctl.conf\nStarting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "stdout_lines": ["Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying ktune sysctl settings:", "/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying sysctl settings from /etc/sysctl.conf", "Starting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]"]} TASK [linux-system-roles.tuned : Set Tuned profile balanced] ******************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:31 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:35 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get tuned version] ******************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_default.yml:9 fatal: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "--version"], "delta": "0:00:00.020082", "end": "2020-08-30 19:17:25.899668", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 19:17:25.879586", "stderr": "Nonexistent argument '--version'.", "stderr_lines": ["Nonexistent argument '--version'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Get active profile] ****************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_default.yml:14 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.079985", "end": "2020-08-30 19:17:26.255527", "rc": 0, "start": "2020-08-30 19:17:26.175542", "stderr": "", "stderr_lines": [], "stdout": "Current active profile: default\nService tuned: enabled, running\nService ktune: enabled, running", "stdout_lines": ["Current active profile: default", "Service tuned: enabled, running", "Service ktune: enabled, running"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_default.yml:18 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_default.yml:21 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=13 changed=7 unreachable=0 failed=0 skipped=4 rescued=0 ignored=1 + cd /tmp/tmpwxzj61lt/tests; TEST_SUBJECTS=/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-centos-6-tmc18357/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpwxzj61lt/_setup.yml /tmp/tmpwxzj61lt/tests/tests_recommended.yml ansible-playbook 2.9.11 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.5 (default, Aug 12 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/tmpwxzj61lt/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpwxzj61lt/_setup.yml:5 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "groups": { "all": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "localhost": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "subjects": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpwxzj61lt/_setup.yml:7 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_recommended.yml ************************************************ 1 plays in /tmp/tmpwxzj61lt/tests/tests_recommended.yml PLAY [Ensure that the recommended profile is set correctly] ******************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:2 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:2 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "changes": {"installed": ["tuned"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror, presto\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: linux.cc.lehigh.edu\n * extras: mirror.datto.com\n * updates: mirror.nodesdirect.com\nResolving Dependencies\n--> Running transaction check\n---> Package tuned.noarch 0:0.2.19-18.el6 will be installed\n--> Processing Dependency: usermode for package: tuned-0.2.19-18.el6.noarch\n--> Running transaction check\n---> Package usermode.x86_64 0:1.102-3.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n tuned noarch 0.2.19-18.el6 base 95 k\nInstalling for dependencies:\n usermode x86_64 1.102-3.el6 base 187 k\n\nTransaction Summary\n================================================================================\nInstall 2 Package(s)\n\nTotal download size: 282 k\nInstalled size: 1.0 M\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 282 k\n--------------------------------------------------------------------------------\nTotal 2.4 MB/s | 282 kB 00:00 \nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n\r Installing : usermode-1.102-3.el6.x86_64 1/2 \n\r Installing : tuned-0.2.19-18.el6.noarch 2/2 \n\r Verifying : tuned-0.2.19-18.el6.noarch 1/2 \n\r Verifying : usermode-1.102-3.el6.x86_64 2/2 \n\nInstalled:\n tuned.noarch 0:0.2.19-18.el6 \n\nDependency Installed:\n usermode.x86_64 0:1.102-3.el6 \n\nComplete!\n"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:5 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:8 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.027015", "end": "2020-08-30 19:18:07.439529", "rc": 0, "start": "2020-08-30 19:18:07.412514", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:12 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:15 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:20 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.021706", "end": "2020-08-30 19:18:07.833528", "rc": 0, "start": "2020-08-30 19:18:07.811822", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:24 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:27 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.465072", "end": "2020-08-30 19:18:08.635476", "rc": 0, "start": "2020-08-30 19:18:08.170404", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying ktune sysctl settings:\n/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying sysctl settings from /etc/sysctl.conf\nStarting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "stdout_lines": ["Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying ktune sysctl settings:", "/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying sysctl settings from /etc/sysctl.conf", "Starting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]"]} TASK [linux-system-roles.tuned : Set Tuned profile balanced] ******************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:31 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:35 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.368597", "end": "2020-08-30 19:18:09.337097", "rc": 0, "start": "2020-08-30 19:18:08.968500", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying ktune sysctl settings:\n/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying sysctl settings from /etc/sysctl.conf\nStarting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "stdout_lines": ["Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying ktune sysctl settings:", "/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying sysctl settings from /etc/sysctl.conf", "Starting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]"]} TASK [Get active profile] ****************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:10 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.075075", "end": "2020-08-30 19:18:09.695195", "rc": 0, "start": "2020-08-30 19:18:09.620120", "stderr": "", "stderr_lines": [], "stdout": "Current active profile: default\nService tuned: enabled, running\nService ktune: enabled, running", "stdout_lines": ["Current active profile: default", "Service tuned: enabled, running", "Service ktune: enabled, running"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:14 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [Get recommended profile] ************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:17 fatal: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "recommend"], "delta": "0:00:00.019324", "end": "2020-08-30 19:18:10.002901", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 19:18:09.983577", "stderr": "Nonexistent argument 'recommend'.", "stderr_lines": ["Nonexistent argument 'recommend'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [set_fact] **************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:23 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"recommended_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_recommended.yml:26 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=15 changed=8 unreachable=0 failed=0 skipped=3 rescued=0 ignored=1 + cd /tmp/tmpwxzj61lt/tests; TEST_SUBJECTS=/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-centos-6-tmc18357/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpwxzj61lt/_setup.yml /tmp/tmpwxzj61lt/tests/tests_set_profile.yml ansible-playbook 2.9.11 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.5 (default, Aug 12 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/tmpwxzj61lt/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpwxzj61lt/_setup.yml:5 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "groups": { "all": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "localhost": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "subjects": [ "/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpwxzj61lt/_setup.yml:7 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_set_profile.yml ************************************************ 1 plays in /tmp/tmpwxzj61lt/tests/tests_set_profile.yml PLAY [Set a profile] *********************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_set_profile.yml:2 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:2 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "changes": {"installed": ["tuned"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror, presto\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: linux.cc.lehigh.edu\n * extras: mirror.datto.com\n * updates: mirror.nodesdirect.com\nResolving Dependencies\n--> Running transaction check\n---> Package tuned.noarch 0:0.2.19-18.el6 will be installed\n--> Processing Dependency: usermode for package: tuned-0.2.19-18.el6.noarch\n--> Running transaction check\n---> Package usermode.x86_64 0:1.102-3.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n tuned noarch 0.2.19-18.el6 base 95 k\nInstalling for dependencies:\n usermode x86_64 1.102-3.el6 base 187 k\n\nTransaction Summary\n================================================================================\nInstall 2 Package(s)\n\nTotal download size: 282 k\nInstalled size: 1.0 M\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 282 k\n--------------------------------------------------------------------------------\nTotal 2.4 MB/s | 282 kB 00:00 \nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n\r Installing : usermode-1.102-3.el6.x86_64 1/2 \n\r Installing : tuned-0.2.19-18.el6.noarch 2/2 \n\r Verifying : tuned-0.2.19-18.el6.noarch 1/2 \n\r Verifying : usermode-1.102-3.el6.x86_64 2/2 \n\nInstalled:\n tuned.noarch 0:0.2.19-18.el6 \n\nDependency Installed:\n usermode.x86_64 0:1.102-3.el6 \n\nComplete!\n"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:5 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:8 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.024527", "end": "2020-08-30 19:18:49.075890", "rc": 0, "start": "2020-08-30 19:18:49.051363", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:12 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:15 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:20 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.022448", "end": "2020-08-30 19:18:49.460772", "rc": 0, "start": "2020-08-30 19:18:49.438324", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:24 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:27 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.437644", "end": "2020-08-30 19:18:50.237798", "rc": 0, "start": "2020-08-30 19:18:49.800154", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying ktune sysctl settings:\n/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nApplying sysctl settings from /etc/sysctl.conf\nStarting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "stdout_lines": ["Stopping tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying ktune sysctl settings:", "/etc/ktune.d/tunedadm.conf: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Applying sysctl settings from /etc/sysctl.conf", "Starting tuned: \u001b[60G[\u001b[0;32m OK \u001b[0;39m]"]} TASK [linux-system-roles.tuned : Set Tuned profile balanced] ******************* task path: /tmp/tmpwxzj61lt/tasks/main.yaml:31 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmpwxzj61lt/tasks/main.yaml:35 skipping: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get tuned version] ******************************************************* task path: /tmp/tmpwxzj61lt/tests/tests_set_profile.yml:10 fatal: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "--version"], "delta": "0:00:00.019284", "end": "2020-08-30 19:18:50.580465", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 19:18:50.561181", "stderr": "Nonexistent argument '--version'.", "stderr_lines": ["Nonexistent argument '--version'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Get active profile] ****************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_set_profile.yml:15 changed: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.076110", "end": "2020-08-30 19:18:50.935890", "rc": 0, "start": "2020-08-30 19:18:50.859780", "stderr": "", "stderr_lines": [], "stdout": "Current active profile: default\nService tuned: enabled, running\nService ktune: enabled, running", "stdout_lines": ["Current active profile: default", "Service tuned: enabled, running", "Service ktune: enabled, running"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_set_profile.yml:19 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmpwxzj61lt/tests/tests_set_profile.yml:22 ok: [/cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/CentOS-6-x86_64-GenericCloud-1907.qcow2c : ok=13 changed=7 unreachable=0 failed=0 skipped=4 rescued=0 ignored=1