# 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-add-remove-kernelsv9jle7af/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:7 Wednesday 03 January 2024 16:40:02 +0000 (0:00:00.012) 0:00:00.012 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Wednesday 03 January 2024 16:40:02 +0000 (0:00:00.022) 0:00:00.035 ***** included: /WORKDIR/git-add-remove-kernelsv9jle7af/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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Wednesday 03 January 2024 16:40:02 +0000 (0:00:00.010) 0:00:00.046 ***** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Wednesday 03 January 2024 16:40:02 +0000 (0:00:00.621) 0:00:00.667 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Wednesday 03 January 2024 16:40:03 +0000 (0:00:00.028) 0:00:00.695 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Wednesday 03 January 2024 16:40:06 +0000 (0:00:03.007) 0:00:03.702 ***** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Wednesday 03 January 2024 16:40:06 +0000 (0:00:00.273) 0:00:03.975 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Wednesday 03 January 2024 16:40:06 +0000 (0:00:00.272) 0:00:04.248 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Wednesday 03 January 2024 16:40:06 +0000 (0:00:00.255) 0:00:04.503 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Wednesday 03 January 2024 16:40:06 +0000 (0:00:00.020) 0:00:04.523 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Wednesday 03 January 2024 16:40:07 +0000 (0:00:00.565) 0:00:05.089 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.609) 0:00:05.699 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.007) 0:00:05.706 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:13 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.008) 0:00:05.715 ***** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003460", "end": "2024-01-03 16:40:08.217562", "failed_when_result": false, "rc": 0, "start": "2024-01-03 16:40:08.214102" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.D3D6C0BA19910F63DE4D4F922C11ED949FD9B8FC3C429F33AE291165A41F2EED07E3D1E1FD629D338A80E405BC8ADD147415AAEB9A2E02923C538B21DA82B935.B4CEC3818972F6E71E335DDEE70A910ECD5BA06BD1BE4C1DD63BDA3B6EE3C4B60CC2406411D6218097DA6531A6E1926E50A35B8DC85A364E490D5A178BA9EAE7 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:21 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.204) 0:00:05.919 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.015) 0:00:05.935 ***** included: /WORKDIR/git-add-remove-kernelsv9jle7af/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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.008) 0:00:05.943 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.008) 0:00:05.952 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Wednesday 03 January 2024 16:40:08 +0000 (0:00:00.018) 0:00:05.970 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Wednesday 03 January 2024 16:40:11 +0000 (0:00:02.886) 0:00:08.856 ***** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.197) 0:00:09.053 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.205) 0:00:09.259 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.192) 0:00:09.452 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.011) 0:00:09.464 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.008) 0:00:09.472 ***** 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-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Wednesday 03 January 2024 16:40:11 +0000 (0:00:00.007) 0:00:09.479 ***** changed: [sut] => { "changed": true, "path": "/boot/grub2/user.cfg", "state": "absent" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Wednesday 03 January 2024 16:40:12 +0000 (0:00:00.270) 0:00:09.750 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:27 Wednesday 03 January 2024 16:40:12 +0000 (0:00:00.008) 0:00:09.759 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:32 Wednesday 03 January 2024 16:40:12 +0000 (0:00:00.193) 0:00:09.952 ***** 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 Wednesday 03 January 2024 16:40:12 +0000 (0:00:00.007) 0:00:09.960 ***** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 3.01s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 2.89s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.62s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.61s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Generate boot loader password ----------- 0.57s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.27s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.27s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.27s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Determine platform type ----------------- 0.26s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.21s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.20s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:13 ----------- linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.20s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.19s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:27 ----------- linux-system-roles.bootloader : Determine platform type ----------------- 0.19s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:7 ------------ linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 linux-system-roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/tests_password.yml:21 ----------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-add-remove-kernelsv9jle7af/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---