+ cd /tmp/tmp4k_xx8m3/tests; TEST_SUBJECTS=/cache/rhel-guest-image-6.10-390.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-rhel-6-0yt7i4qx/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp4k_xx8m3/_setup.yml /tmp/tmp4k_xx8m3/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 *********************************************************** 2 plays in /tmp/tmp4k_xx8m3/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp4k_xx8m3/_setup.yml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "groups": { "all": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "localhost": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "subjects": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:7 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:16 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp4k_xx8m3/tests/tests_default.yml PLAY [Ensure the default profile is "balanced"] ******************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_default.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:8 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.023029", "end": "2020-08-30 15:25:59.886777", "rc": 0, "start": "2020-08-30 15:25:59.863748", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:12 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:15 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:20 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.022899", "end": "2020-08-30 15:26:00.225338", "rc": 0, "start": "2020-08-30 15:26:00.202439", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:24 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:27 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.486512", "end": "2020-08-30 15:26:01.031686", "rc": 0, "start": "2020-08-30 15:26:00.545174", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nReverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nStopping 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": ["Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Reverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "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/tmp4k_xx8m3/tasks/main.yaml:31 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:35 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get tuned version] ******************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_default.yml:9 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "--version"], "delta": "0:00:00.018646", "end": "2020-08-30 15:26:01.343429", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 15:26:01.324783", "stderr": "Nonexistent argument '--version'.", "stderr_lines": ["Nonexistent argument '--version'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Get active profile] ****************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_default.yml:14 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.077494", "end": "2020-08-30 15:26:01.658361", "rc": 0, "start": "2020-08-30 15:26:01.580867", "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/tmp4k_xx8m3/tests/tests_default.yml:18 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_default.yml:21 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=14 changed=6 unreachable=0 failed=0 skipped=4 rescued=0 ignored=1 + cd /tmp/tmp4k_xx8m3/tests; TEST_SUBJECTS=/cache/rhel-guest-image-6.10-390.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-rhel-6-0yt7i4qx/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp4k_xx8m3/_setup.yml /tmp/tmp4k_xx8m3/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 *********************************************************** 2 plays in /tmp/tmp4k_xx8m3/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp4k_xx8m3/_setup.yml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "groups": { "all": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "localhost": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "subjects": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:7 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:16 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_recommended.yml ************************************************ 1 plays in /tmp/tmp4k_xx8m3/tests/tests_recommended.yml PLAY [Ensure that the recommended profile is set correctly] ******************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_recommended.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:8 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.025061", "end": "2020-08-30 15:26:29.733157", "rc": 0, "start": "2020-08-30 15:26:29.708096", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:12 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:15 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:20 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.022430", "end": "2020-08-30 15:26:30.078171", "rc": 0, "start": "2020-08-30 15:26:30.055741", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:24 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:27 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.490405", "end": "2020-08-30 15:26:30.877377", "rc": 0, "start": "2020-08-30 15:26:30.386972", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nReverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nStopping 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": ["Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Reverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "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/tmp4k_xx8m3/tasks/main.yaml:31 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:35 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.377177", "end": "2020-08-30 15:26:31.558369", "rc": 0, "start": "2020-08-30 15:26:31.181192", "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/tmp4k_xx8m3/tests/tests_recommended.yml:10 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.071839", "end": "2020-08-30 15:26:31.879776", "rc": 0, "start": "2020-08-30 15:26:31.807937", "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/tmp4k_xx8m3/tests/tests_recommended.yml:14 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [Get recommended profile] ************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_recommended.yml:17 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "recommend"], "delta": "0:00:00.019323", "end": "2020-08-30 15:26:32.175573", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 15:26:32.156250", "stderr": "Nonexistent argument 'recommend'.", "stderr_lines": ["Nonexistent argument 'recommend'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [set_fact] **************************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_recommended.yml:23 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"recommended_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_recommended.yml:26 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=16 changed=7 unreachable=0 failed=0 skipped=3 rescued=0 ignored=1 + cd /tmp/tmp4k_xx8m3/tests; TEST_SUBJECTS=/cache/rhel-guest-image-6.10-390.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_tuned-3-e0132f5-rhel-6-0yt7i4qx/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp4k_xx8m3/_setup.yml /tmp/tmp4k_xx8m3/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 *********************************************************** 2 plays in /tmp/tmp4k_xx8m3/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp4k_xx8m3/_setup.yml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "groups": { "all": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "localhost": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "subjects": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:7 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmp4k_xx8m3/_setup.yml:16 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_set_profile.yml ************************************************ 1 plays in /tmp/tmp4k_xx8m3/tests/tests_set_profile.yml PLAY [Set a profile] *********************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_set_profile.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.tuned : Install Tuned] ******************************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.tuned : Enable Tuned] ********************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tuned", "state": "started"} TASK [linux-system-roles.tuned : Check for Tuned legacy] *********************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:8 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned --version &> /dev/null || echo -n \"legacy\"", "delta": "0:00:00.024500", "end": "2020-08-30 15:26:56.892397", "rc": 0, "start": "2020-08-30 15:26:56.867897", "stderr": "", "stderr_lines": [], "stdout": "legacy", "stdout_lines": ["legacy"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:12 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_legacy": true}, "changed": false} TASK [linux-system-roles.tuned : Generate tuned-main.conf file] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:15 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Get Tuned recommended profile] **************** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:20 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": "tuned-adm recommend 2> /dev/null || echo -n \" *fail\"", "delta": "0:00:00.023513", "end": "2020-08-30 15:26:57.250008", "rc": 0, "start": "2020-08-30 15:26:57.226495", "stderr": "", "stderr_lines": [], "stdout": " *fail", "stdout_lines": [" *fail"]} TASK [linux-system-roles.tuned : set_fact] ************************************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:24 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"tuned_recommended_profile": "default"}, "changed": false} TASK [linux-system-roles.tuned : Set Tuned legacy profile default] ************* task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:27 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "profile", "default"], "delta": "0:00:00.484825", "end": "2020-08-30 15:26:58.056262", "rc": 0, "start": "2020-08-30 15:26:57.571437", "stderr": "Switching to profile 'default'", "stderr_lines": ["Switching to profile 'default'"], "stdout": "Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nReverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]\r\nStopping 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": ["Calling '/etc/ktune.d/tunedadm.sh stop': \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "Reverting to cfq elevator: vda \u001b[60G[\u001b[0;32m OK \u001b[0;39m]", "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/tmp4k_xx8m3/tasks/main.yaml:31 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.tuned : Set recommended Tuned profile default] ******** task path: /tmp/tmp4k_xx8m3/tasks/main.yaml:35 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get tuned version] ******************************************************* task path: /tmp/tmp4k_xx8m3/tests/tests_set_profile.yml:10 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": true, "cmd": ["tuned-adm", "--version"], "delta": "0:00:00.019709", "end": "2020-08-30 15:26:58.394709", "msg": "non-zero return code", "rc": 1, "start": "2020-08-30 15:26:58.375000", "stderr": "Nonexistent argument '--version'.", "stderr_lines": ["Nonexistent argument '--version'."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Get active profile] ****************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_set_profile.yml:15 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "cmd": ["tuned-adm", "active"], "delta": "0:00:00.086477", "end": "2020-08-30 15:26:58.730487", "rc": 0, "start": "2020-08-30 15:26:58.644010", "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/tmp4k_xx8m3/tests/tests_set_profile.yml:19 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"active_profile": "default"}, "changed": false} TASK [assert] ****************************************************************** task path: /tmp/tmp4k_xx8m3/tests/tests_set_profile.yml:22 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=14 changed=6 unreachable=0 failed=0 skipped=4 rescued=0 ignored=1