# 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-kernels83ftiu2r/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:7 Monday 08 January 2024 17:07:50 +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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Monday 08 January 2024 17:07:50 +0000 (0:00:00.023) 0:00:00.035 ******** included: /WORKDIR/git-add-remove-kernels83ftiu2r/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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Monday 08 January 2024 17:07:50 +0000 (0:00:00.011) 0:00:00.047 ******** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Monday 08 January 2024 17:07:50 +0000 (0:00:00.415) 0:00:00.462 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Monday 08 January 2024 17:07:50 +0000 (0:00:00.063) 0:00:00.526 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Monday 08 January 2024 17:07:53 +0000 (0:00:03.298) 0:00:03.824 ******** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Monday 08 January 2024 17:07:54 +0000 (0:00:00.254) 0:00:04.078 ******** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Monday 08 January 2024 17:07:54 +0000 (0:00:00.256) 0:00:04.335 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Monday 08 January 2024 17:07:54 +0000 (0:00:00.242) 0:00:04.578 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:44 Monday 08 January 2024 17:07:54 +0000 (0:00:00.020) 0:00:04.598 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:56 Monday 08 January 2024 17:07:55 +0000 (0:00:00.429) 0:00:05.028 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:64 Monday 08 January 2024 17:07:55 +0000 (0:00:00.575) 0:00:05.603 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:71 Monday 08 January 2024 17:07:55 +0000 (0:00:00.007) 0:00:05.611 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:13 Monday 08 January 2024 17:07:55 +0000 (0:00:00.008) 0:00:05.619 ******** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003049", "end": "2024-01-08 17:07:55.787985", "failed_when_result": false, "rc": 0, "start": "2024-01-08 17:07:55.784936" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.6A756D7510BF9E91BB750C57077622A87B103B636A57BC5E52893434B31232E3EB081F97CFAD043EA474AC52BDFAEA8EDD88A3C1E1D69EA24695677AFD3EFA68.3C0B786DB264DC2028AC83E6DA35E9461391829733A1E70971EAFF768E9AD97D4C99E3C37FB5C30AD19CB6E730EA97BA763876C8723011BC49BFF7BD0A3792C8 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:21 Monday 08 January 2024 17:07:55 +0000 (0:00:00.186) 0:00:05.806 ******** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Monday 08 January 2024 17:07:55 +0000 (0:00:00.017) 0:00:05.823 ******** included: /WORKDIR/git-add-remove-kernels83ftiu2r/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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Monday 08 January 2024 17:07:55 +0000 (0:00:00.009) 0:00:05.833 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Monday 08 January 2024 17:07:55 +0000 (0:00:00.008) 0:00:05.842 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Monday 08 January 2024 17:07:55 +0000 (0:00:00.018) 0:00:05.860 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Monday 08 January 2024 17:07:59 +0000 (0:00:03.179) 0:00:09.039 ******** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Monday 08 January 2024 17:07:59 +0000 (0:00:00.182) 0:00:09.222 ******** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Monday 08 January 2024 17:07:59 +0000 (0:00:00.186) 0:00:09.408 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Monday 08 January 2024 17:07:59 +0000 (0:00:00.178) 0:00:09.586 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:44 Monday 08 January 2024 17:07:59 +0000 (0:00:00.012) 0:00:09.599 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:56 Monday 08 January 2024 17:07:59 +0000 (0:00:00.008) 0:00:09.607 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:64 Monday 08 January 2024 17:07:59 +0000 (0:00:00.007) 0:00:09.614 ******** 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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:71 Monday 08 January 2024 17:07:59 +0000 (0:00:00.259) 0:00:09.874 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:27 Monday 08 January 2024 17:07:59 +0000 (0:00:00.008) 0:00:09.882 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:32 Monday 08 January 2024 17:08:00 +0000 (0:00:00.180) 0:00:10.062 ******** 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 Monday 08 January 2024 17:08:00 +0000 (0:00:00.007) 0:00:10.070 ******** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 3.30s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 3.18s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.58s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:56 linux-system-roles.bootloader : Generate boot loader password ----------- 0.43s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:44 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.42s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.26s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:64 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.26s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.25s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.24s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.19s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:13 ----------- linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.19s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.18s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.18s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:27 ----------- linux-system-roles.bootloader : Determine platform type ----------------- 0.18s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.06s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:7 ------------ linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-add-remove-kernels83ftiu2r/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-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/tests_password.yml:21 ----------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-add-remove-kernels83ftiu2r/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---