# 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_password.yml *************************************************** 1 plays in /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:7 Saturday 23 December 2023 13:53:23 +0000 (0:00:00.012) 0:00:00.012 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Saturday 23 December 2023 13:53:23 +0000 (0:00:00.022) 0:00:00.034 ***** included: /WORKDIR/git-weekly-ciz1ec2ym0/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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Saturday 23 December 2023 13:53:23 +0000 (0:00:00.010) 0:00:00.045 ***** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Saturday 23 December 2023 13:53:24 +0000 (0:00:00.393) 0:00:00.438 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Saturday 23 December 2023 13:53:24 +0000 (0:00:00.027) 0:00:00.465 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } lsrpackages: grubby TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Saturday 23 December 2023 13:53:25 +0000 (0:00:00.882) 0:00:01.348 ***** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Saturday 23 December 2023 13:53:25 +0000 (0:00:00.186) 0:00:01.534 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Saturday 23 December 2023 13:53:25 +0000 (0:00:00.189) 0:00:01.723 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Saturday 23 December 2023 13:53:25 +0000 (0:00:00.168) 0:00:01.892 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Saturday 23 December 2023 13:53:25 +0000 (0:00:00.019) 0:00:01.911 ***** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.415) 0:00:02.327 ***** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.425) 0:00:02.752 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.007) 0:00:02.760 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:13 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.008) 0:00:02.768 ***** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.005012", "end": "2023-12-23 13:53:26.647560", "failed_when_result": false, "rc": 0, "start": "2023-12-23 13:53:26.642548" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.AD777A10341A5CCB79F7F9CEC787798CD640D1D9E7DDD5985BAA1AC46DADA6BD941B89B5949F9E69BCA659BC70EE2D46990C1391196F8AA807FF9CB40795FF2A.754FFB35B81F433EA0FC21AC47CCEBAB6C58C7C9B09B1B934B36D1ED48A7DC7450576F2C968FCDA97FAE36C8FC6A333E32772F6C75E5B0DD9B3AA97E67C1E0E5 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:21 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.129) 0:00:02.898 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.015) 0:00:02.913 ***** included: /WORKDIR/git-weekly-ciz1ec2ym0/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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.007) 0:00:02.921 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.008) 0:00:02.929 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Saturday 23 December 2023 13:53:26 +0000 (0:00:00.017) 0:00:02.947 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } lsrpackages: grubby TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.593) 0:00:03.540 ***** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.120) 0:00:03.661 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.130) 0:00:03.791 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.122) 0:00:03.914 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.011) 0:00:03.926 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.007) 0:00:03.934 ***** 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-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.006) 0:00:03.941 ***** changed: [sut] => { "changed": true, "path": "/boot/grub2/user.cfg", "state": "absent" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.197) 0:00:04.139 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:27 Saturday 23 December 2023 13:53:27 +0000 (0:00:00.008) 0:00:04.147 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:32 Saturday 23 December 2023 13:53:28 +0000 (0:00:00.125) 0:00:04.272 ***** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=19 changed=3 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Saturday 23 December 2023 13:53:28 +0000 (0:00:00.007) 0:00:04.280 ***** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 0.88s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 0.59s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.43s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Generate boot loader password ----------- 0.42s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.39s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.20s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.19s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.19s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.17s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.13s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.13s /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:13 -------------------- Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.13s /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:27 -------------------- linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.12s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:7 --------------------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 linux-system-roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-weekly-ciz1ec2ym0/tests/tests_password.yml:21 -------------------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-weekly-ciz1ec2ym0/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---