# 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-kernelsfv_10ck2/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:7 Tuesday 02 January 2024 15:14:55 +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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:14:55 +0000 (0:00:00.022) 0:00:00.035 ******* included: /WORKDIR/git-add-remove-kernelsfv_10ck2/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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:14:55 +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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Tuesday 02 January 2024 15:14:57 +0000 (0:00:02.283) 0:00:02.330 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:14:57 +0000 (0:00:00.026) 0:00:02.356 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:15:00 +0000 (0:00:03.039) 0:00:05.395 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:15:00 +0000 (0:00:00.263) 0:00:05.659 ******* ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.270) 0:00:05.930 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.252) 0:00:06.182 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.020) 0:00:06.203 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.540) 0:00:06.744 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.603) 0:00:07.348 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.007) 0:00:07.355 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:13 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.008) 0:00:07.363 ******* ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003388", "end": "2024-01-02 15:15:02.696090", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:15:02.692702" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.BC4B481537A746FFECC0C6F10A70813B4BB96ED6C929E439E957FEB4A9C9DB77F5408E0E4C0D43C94B460764FF2CACF8B2F1172600E6C97006FD0495321A3067.D40B2AC83F327DB50CF0A9C58826B4A4BC714332DD76318431528EF0AF14B5B17D0B3199B3AF13E28C71B9290B3ED2CC9BE8ADA19B5CBEF65BB35CA7FF2AF9AA TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:21 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.206) 0:00:07.569 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.015) 0:00:07.585 ******* included: /WORKDIR/git-add-remove-kernelsfv_10ck2/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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.008) 0:00:07.594 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.008) 0:00:07.602 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:15:02 +0000 (0:00:00.017) 0:00:07.619 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:15:05 +0000 (0:00:02.990) 0:00:10.610 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:15:05 +0000 (0:00:00.197) 0:00:10.808 ******* ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.204) 0:00:11.012 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.196) 0:00:11.209 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.011) 0:00:11.220 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.008) 0:00:11.228 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.006) 0:00:11.235 ******* 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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.268) 0:00:11.504 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:27 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.008) 0:00:11.512 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:32 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.194) 0:00:11.707 ******* 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 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.009) 0:00:11.716 ******* =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 3.04s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 2.99s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 2.28s /WORKDIR/git-add-remove-kernelsfv_10ck2/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.60s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Generate boot loader password ----------- 0.54s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.27s /WORKDIR/git-add-remove-kernelsfv_10ck2/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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.26s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.25s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.21s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:13 ----------- linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.20s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.20s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.20s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.19s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:27 ----------- linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:7 ------------ linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-add-remove-kernelsfv_10ck2/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-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/tests_password.yml:21 ----------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-add-remove-kernelsfv_10ck2/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---