# 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-kernelssaff6f33/.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-kernelssaff6f33/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:7 Thursday 04 January 2024 09:02:48 +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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 04 January 2024 09:02:48 +0000 (0:00:00.019) 0:00:00.031 ****** included: /WORKDIR/git-add-remove-kernelssaff6f33/.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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 04 January 2024 09:02:48 +0000 (0:00:00.009) 0:00:00.041 ****** ok: [sut] TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Thursday 04 January 2024 09:02:48 +0000 (0:00:00.592) 0:00:00.633 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 04 January 2024 09:02:48 +0000 (0:00:00.019) 0:00:00.653 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Thursday 04 January 2024 09:02:51 +0000 (0:00:02.412) 0:00:03.065 ****** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Thursday 04 January 2024 09:02:51 +0000 (0:00:00.303) 0:00:03.368 ****** ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Thursday 04 January 2024 09:02:51 +0000 (0:00:00.296) 0:00:03.665 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Thursday 04 January 2024 09:02:51 +0000 (0:00:00.289) 0:00:03.955 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 04 January 2024 09:02:52 +0000 (0:00:00.020) 0:00:03.975 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Thursday 04 January 2024 09:02:52 +0000 (0:00:00.495) 0:00:04.471 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.672) 0:00:05.143 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.015) 0:00:05.158 ****** 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-kernelssaff6f33/tests/tests_password.yml:13 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.015) 0:00:05.174 ****** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003602", "end": "2024-01-04 09:02:53.425301", "failed_when_result": false, "rc": 0, "start": "2024-01-04 09:02:53.421699" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.60B24A29804AA4F76DDEE4F5E4B456A4448BAF41651EFB15743C06153F4F307235024B88DDB0D6748DEC2F08B7443E08D0D137C65FE1649E1C0297BC4CB1EBEC.F38F058D686D7345A6541E48FBAE1A217D6A8350F5A5FA15328FEE2C1CE9C64AC3531FF9B2FB10824F51EDE68DEAB26217F320A9AA7C94EFA7C4407E572ACAD4 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:21 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.249) 0:00:05.424 ****** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.023) 0:00:05.447 ****** included: /WORKDIR/git-add-remove-kernelssaff6f33/.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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.011) 0:00:05.459 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.037) 0:00:05.496 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 04 January 2024 09:02:53 +0000 (0:00:00.026) 0:00:05.523 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Thursday 04 January 2024 09:02:55 +0000 (0:00:02.376) 0:00:07.899 ****** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.252) 0:00:08.151 ****** ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.241) 0:00:08.393 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.237) 0:00:08.631 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.039) 0:00:08.670 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.012) 0:00:08.682 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Thursday 04 January 2024 09:02:56 +0000 (0:00:00.013) 0:00:08.696 ****** 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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Thursday 04 January 2024 09:02:57 +0000 (0:00:00.347) 0:00:09.043 ****** 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-kernelssaff6f33/tests/tests_password.yml:27 Thursday 04 January 2024 09:02:57 +0000 (0:00:00.017) 0:00:09.061 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:32 Thursday 04 January 2024 09:02:57 +0000 (0:00:00.239) 0:00:09.300 ****** 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 Thursday 04 January 2024 09:02:57 +0000 (0:00:00.009) 0:00:09.310 ****** =============================================================================== fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.41s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.38s /WORKDIR/git-add-remove-kernelssaff6f33/.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-kernelssaff6f33/.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.59s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 fedora.linux_system_roles.bootloader : Generate boot loader password ---- 0.50s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 fedora.linux_system_roles.bootloader : Remove boot loader password configuration --- 0.35s /WORKDIR/git-add-remove-kernelssaff6f33/.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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 fedora.linux_system_roles.bootloader : Update boot loader timeout configuration --- 0.30s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 fedora.linux_system_roles.bootloader : Determine platform type ---------- 0.29s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.25s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.25s /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:13 ----------- fedora.linux_system_roles.bootloader : Update boot loader timeout configuration --- 0.24s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.24s /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:27 ----------- fedora.linux_system_roles.bootloader : Determine platform type ---------- 0.24s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 fedora.linux_system_roles.bootloader : Set boot loader configuration files --- 0.04s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.04s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 fedora.linux_system_roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-add-remove-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelssaff6f33/tests/tests_password.yml:21 ----------- fedora.linux_system_roles.bootloader : Set boot loader configuration files --- 0.02s /WORKDIR/git-add-remove-kernelssaff6f33/.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-kernelssaff6f33/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---