# 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-kernelszlmsehyz/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:7 Tuesday 02 January 2024 15:11:48 +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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:11:48 +0000 (0:00:00.022) 0:00:00.035 ******* included: /WORKDIR/git-add-remove-kernelszlmsehyz/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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:11:48 +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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Tuesday 02 January 2024 15:11:48 +0000 (0:00:00.301) 0:00:00.347 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:11:48 +0000 (0:00:00.026) 0:00:00.373 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:11:49 +0000 (0:00:00.677) 0:00:01.051 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:11:49 +0000 (0:00:00.194) 0:00:01.245 ******* ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:11:49 +0000 (0:00:00.219) 0:00:01.464 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:11:50 +0000 (0:00:00.227) 0:00:01.692 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Tuesday 02 January 2024 15:11:50 +0000 (0:00:00.042) 0:00:01.735 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Tuesday 02 January 2024 15:11:50 +0000 (0:00:00.507) 0:00:02.242 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Tuesday 02 January 2024 15:11:56 +0000 (0:00:05.486) 0:00:07.728 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.026) 0:00:07.755 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:13 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.009) 0:00:07.764 ******* ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003248", "end": "2024-01-02 15:11:56.288072", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:11:56.284824" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.87B038FDFE05B2205F71451A72B08FC2684E4263BC27B21B837386E4A5FC2B38139974D30FA93039F6143CD4B887B44FD05C891963ED627CE90447C4B99DE283.CA82DCB2BC1147E7B1E1E18AB8DDC2850FB51407476ADC4321767B9BDB72F58F1AA004819F678414A58771466D80C16E20F1D38E95667798DB3E1E4CB9E3240C TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:21 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.141) 0:00:07.905 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.023) 0:00:07.929 ******* included: /WORKDIR/git-add-remove-kernelszlmsehyz/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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.008) 0:00:07.938 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.009) 0:00:07.947 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.018) 0:00:07.966 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:11:56 +0000 (0:00:00.567) 0:00:08.533 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.126) 0:00:08.660 ******* ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.127) 0:00:08.788 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.124) 0:00:08.913 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.023) 0:00:08.936 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.011) 0:00:08.948 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.009) 0:00:08.957 ******* 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-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.201) 0:00:09.159 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:27 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.010) 0:00:09.169 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:32 Tuesday 02 January 2024 15:11:57 +0000 (0:00:00.130) 0:00:09.299 ******* 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:11:57 +0000 (0:00:00.037) 0:00:09.337 ******* =============================================================================== linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 5.49s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Ensure required packages are installed --- 0.68s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 0.57s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Generate boot loader password ----------- 0.51s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.30s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Determine platform type ----------------- 0.23s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.22s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.20s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.19s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.14s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:13 ----------- Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.13s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:27 ----------- linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.13s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.13s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.04s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Verify that user conf doesn't exist ------------------------------------- 0.04s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:32 ----------- linux-system-roles.bootloader : Remove boot loader password configuration --- 0.03s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/tests_password.yml:21 ----------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-add-remove-kernelszlmsehyz/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---