# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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_include_vars_from_parent.yml *********************************** 1 plays in /WORKDIR/git-mainnkqp_wny/tests/tests_include_vars_from_parent.yml PLAY [Test roles variables override] ******************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-mainnkqp_wny/tests/tests_include_vars_from_parent.yml:2 Friday 08 December 2023 09:14:54 +0000 (0:00:00.012) 0:00:00.012 ******* ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-mainnkqp_wny/tests/tests_include_vars_from_parent.yml:6 Friday 08 December 2023 09:14:55 +0000 (0:00:00.934) 0:00:00.947 ******* changed: [sut -> localhost] => (item=CentOS-7.9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/CentOS-7.9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-7.9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026895.0751798-2194-108923769783683/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS-7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/CentOS-7.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026895.5146894-2194-280482119524938/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_7.9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/CentOS_7.9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_7.9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026895.8219855-2194-256059239975583/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/CentOS_7.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026896.1604838-2194-209742584217385/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/CentOS.yml", "gid": 1001, "group": "jenkins", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026896.5296547-2194-237045112564613/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-mainnkqp_wny/tests/roles/caller/vars/RedHat.yml", "gid": 1001, "group": "jenkins", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1702026896.8285215-2194-67440270382759/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-mainnkqp_wny/tests/roles/caller/tasks/main.yml:4 Friday 08 December 2023 09:14:57 +0000 (0:00:02.029) 0:00:02.976 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Friday 08 December 2023 09:14:57 +0000 (0:00:00.033) 0:00:03.009 ******* included: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml for sut TASK [linux-system-roles.bootloader : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Friday 08 December 2023 09:14:57 +0000 (0:00:00.015) 0:00:03.024 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Friday 08 December 2023 09:14:57 +0000 (0:00:00.018) 0:00:03.043 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Friday 08 December 2023 09:14:57 +0000 (0:00:00.033) 0:00:03.076 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Friday 08 December 2023 09:14:58 +0000 (0:00:00.849) 0:00:03.926 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Friday 08 December 2023 09:14:58 +0000 (0:00:00.200) 0:00:04.127 ******* ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Friday 08 December 2023 09:14:58 +0000 (0:00:00.184) 0:00:04.312 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Friday 08 December 2023 09:14:58 +0000 (0:00:00.121) 0:00:04.433 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [linux-system-roles.bootloader : Generate boot loader password] *********** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Friday 08 December 2023 09:14:58 +0000 (0:00:00.014) 0:00:04.448 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Friday 08 December 2023 09:14:58 +0000 (0:00:00.009) 0:00:04.457 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Friday 08 December 2023 09:14:58 +0000 (0:00:00.008) 0:00:04.465 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Friday 08 December 2023 09:14:58 +0000 (0:00:00.007) 0:00:04.473 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [caller : Assert variable not overridden] ********************************* task path: /WORKDIR/git-mainnkqp_wny/tests/roles/caller/tasks/main.yml:8 Friday 08 December 2023 09:14:58 +0000 (0:00:00.008) 0:00:04.482 ******* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=9 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Friday 08 December 2023 09:14:58 +0000 (0:00:00.007) 0:00:04.489 ******* =============================================================================== Create var file in caller that can override the one in called role ------ 2.03s /WORKDIR/git-mainnkqp_wny/tests/tests_include_vars_from_parent.yml:6 ---------- Gathering Facts --------------------------------------------------------- 0.93s /WORKDIR/git-mainnkqp_wny/tests/tests_include_vars_from_parent.yml:2 ---------- linux-system-roles.bootloader : Ensure required packages are installed --- 0.85s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.20s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.18s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Include role ------------------------------------------------------------ 0.03s /WORKDIR/git-mainnkqp_wny/tests/roles/caller/tasks/main.yml:4 ----------------- linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.02s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 linux-system-roles.bootloader : Generate boot loader password ----------- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Collect bootloader facts ---------------- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 caller : Assert variable not overridden --------------------------------- 0.01s /WORKDIR/git-mainnkqp_wny/tests/roles/caller/tasks/main.yml:8 ----------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---