# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] 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.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-add-remove-kernelshxtub2u0/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_password.yml *************************************************** 1 plays in /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:7 Wednesday 03 January 2024 16:37:58 +0000 (0:00:00.012) 0:00:00.012 ***** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Wednesday 03 January 2024 16:37:58 +0000 (0:00:00.027) 0:00:00.039 ***** included: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Wednesday 03 January 2024 16:37:58 +0000 (0:00:00.008) 0:00:00.048 ***** ok: [sut] TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Wednesday 03 January 2024 16:37:59 +0000 (0:00:00.577) 0:00:00.625 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Wednesday 03 January 2024 16:37:59 +0000 (0:00:00.021) 0:00:00.647 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Wednesday 03 January 2024 16:38:01 +0000 (0:00:02.393) 0:00:03.041 ***** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Wednesday 03 January 2024 16:38:01 +0000 (0:00:00.300) 0:00:03.341 ***** ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Wednesday 03 January 2024 16:38:02 +0000 (0:00:00.326) 0:00:03.668 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Wednesday 03 January 2024 16:38:02 +0000 (0:00:00.291) 0:00:03.959 ***** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Wednesday 03 January 2024 16:38:02 +0000 (0:00:00.021) 0:00:03.980 ***** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Wednesday 03 January 2024 16:38:03 +0000 (0:00:00.490) 0:00:04.470 ***** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Wednesday 03 January 2024 16:38:03 +0000 (0:00:00.671) 0:00:05.142 ***** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Wednesday 03 January 2024 16:38:03 +0000 (0:00:00.014) 0:00:05.156 ***** skipping: [sut] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:13 Wednesday 03 January 2024 16:38:03 +0000 (0:00:00.014) 0:00:05.171 ***** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003847", "end": "2024-01-03 16:38:04.025562", "failed_when_result": false, "rc": 0, "start": "2024-01-03 16:38:04.021715" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.1716A9B7055168A2EF31DC39BA0BBB76BB49D92542B49D7FD121F4BD6D344C48F0F036DC62B54D83FC79E604DEB4D3EECACC405CAA58812BC2139DC2B846A5FA.194C0ADE34159FB066134A08A4572530BA490F82C9EE66734A5B862E23B191F17298ED2859BF5D3C61D54AA01398354B6CBBBBBF34976513C77612CB9C8C1A2E TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:21 Wednesday 03 January 2024 16:38:04 +0000 (0:00:00.244) 0:00:05.415 ***** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Wednesday 03 January 2024 16:38:04 +0000 (0:00:00.018) 0:00:05.434 ***** included: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Wednesday 03 January 2024 16:38:04 +0000 (0:00:00.008) 0:00:05.442 ***** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Wednesday 03 January 2024 16:38:04 +0000 (0:00:00.015) 0:00:05.457 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Wednesday 03 January 2024 16:38:04 +0000 (0:00:00.016) 0:00:05.474 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Wednesday 03 January 2024 16:38:06 +0000 (0:00:02.317) 0:00:07.791 ***** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Wednesday 03 January 2024 16:38:06 +0000 (0:00:00.240) 0:00:08.031 ***** ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Wednesday 03 January 2024 16:38:06 +0000 (0:00:00.247) 0:00:08.279 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.259) 0:00:08.538 ***** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.025) 0:00:08.564 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.011) 0:00:08.576 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.012) 0:00:08.588 ***** changed: [sut] => { "changed": true, "path": "/boot/grub2/user.cfg", "state": "absent" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.315) 0:00:08.904 ***** skipping: [sut] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:27 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.016) 0:00:08.921 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:32 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.256) 0:00:09.178 ***** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=19 changed=3 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Wednesday 03 January 2024 16:38:07 +0000 (0:00:00.026) 0:00:09.204 ***** =============================================================================== fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.39s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.32s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.67s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.58s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 fedora.linux_system_roles.bootloader : Generate boot loader password ---- 0.49s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 fedora.linux_system_roles.bootloader : Update boot loader timeout configuration --- 0.33s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 fedora.linux_system_roles.bootloader : Remove boot loader password configuration --- 0.32s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.30s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 fedora.linux_system_roles.bootloader : Determine platform type ---------- 0.29s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 fedora.linux_system_roles.bootloader : Determine platform type ---------- 0.26s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.26s /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:27 ----------- fedora.linux_system_roles.bootloader : Update boot loader timeout configuration --- 0.25s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.24s /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:13 ----------- fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.24s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Set boot loader password ------------------------------------------------ 0.03s /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:7 ------------ Verify that user conf doesn't exist ------------------------------------- 0.03s /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:32 ----------- fedora.linux_system_roles.bootloader : Set boot loader configuration files --- 0.03s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 fedora.linux_system_roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 fedora.linux_system_roles.bootloader : Set boot loader configuration files --- 0.02s /WORKDIR/git-add-remove-kernelshxtub2u0/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelshxtub2u0/tests/tests_password.yml:21 ----------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---