# 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-kernelsysrfdaa6/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:7 Thursday 04 January 2024 09:23:53 +0000 (0:00:00.017) 0:00:00.017 ****** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Thursday 04 January 2024 09:23:53 +0000 (0:00:00.035) 0:00:00.053 ****** included: /WORKDIR/git-add-remove-kernelsysrfdaa6/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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Thursday 04 January 2024 09:23:53 +0000 (0:00:00.042) 0:00:00.095 ****** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Thursday 04 January 2024 09:23:53 +0000 (0:00:00.445) 0:00:00.541 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Thursday 04 January 2024 09:23:53 +0000 (0:00:00.029) 0:00:00.570 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Thursday 04 January 2024 09:23:57 +0000 (0:00:03.344) 0:00:03.914 ****** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Thursday 04 January 2024 09:23:57 +0000 (0:00:00.269) 0:00:04.184 ****** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Thursday 04 January 2024 09:23:57 +0000 (0:00:00.276) 0:00:04.460 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Thursday 04 January 2024 09:23:58 +0000 (0:00:00.252) 0:00:04.713 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Thursday 04 January 2024 09:23:58 +0000 (0:00:00.022) 0:00:04.736 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Thursday 04 January 2024 09:23:58 +0000 (0:00:00.439) 0:00:05.175 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Thursday 04 January 2024 09:23:59 +0000 (0:00:00.594) 0:00:05.770 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Thursday 04 January 2024 09:23:59 +0000 (0:00:00.007) 0:00:05.778 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:13 Thursday 04 January 2024 09:23:59 +0000 (0:00:00.010) 0:00:05.788 ****** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:01.004229", "end": "2024-01-04 09:24:00.372210", "failed_when_result": false, "rc": 0, "start": "2024-01-04 09:23:59.367981" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.DCB90C4297BE4A61BA60CE801FF4F3843D1F19304D4C4BB01E69EA040D315A5203892767C3B7E84B81BA5D99BFF21443F2238FFC1BEDB92522CAD574A7F775DB.ACA1F0B6BAEA112F01CDDBEF6FF2D7F8CB5C8AE05ABB757EB8ED3BDDCC7CEEF7073B6B3F3C0CE2C2F35D3D125418FD8233D7A9A429B25AACF090CA22C0A11323 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:21 Thursday 04 January 2024 09:24:00 +0000 (0:00:01.190) 0:00:06.978 ****** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Thursday 04 January 2024 09:24:00 +0000 (0:00:00.015) 0:00:06.994 ****** included: /WORKDIR/git-add-remove-kernelsysrfdaa6/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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Thursday 04 January 2024 09:24:00 +0000 (0:00:00.008) 0:00:07.002 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Thursday 04 January 2024 09:24:00 +0000 (0:00:00.008) 0:00:07.011 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Thursday 04 January 2024 09:24:00 +0000 (0:00:00.017) 0:00:07.029 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Thursday 04 January 2024 09:24:03 +0000 (0:00:03.198) 0:00:10.227 ****** ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Thursday 04 January 2024 09:24:03 +0000 (0:00:00.180) 0:00:10.408 ****** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.184) 0:00:10.593 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.178) 0:00:10.772 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.013) 0:00:10.785 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.009) 0:00:10.795 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.008) 0:00:10.804 ****** 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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.261) 0:00:11.065 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:27 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.008) 0:00:11.074 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:32 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.181) 0:00:11.255 ****** 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 Thursday 04 January 2024 09:24:04 +0000 (0:00:00.009) 0:00:11.264 ****** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 3.34s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 3.20s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Get contents of /boot/grub2/user.cfg ------------------------------------ 1.19s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:13 ----------- linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.59s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.45s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Generate boot loader password ----------- 0.44s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.28s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.27s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.26s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Determine platform type ----------------- 0.25s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.18s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.18s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:27 ----------- linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.18s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.18s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.04s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Set boot loader password ------------------------------------------------ 0.04s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:7 ------------ linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-add-remove-kernelsysrfdaa6/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-kernelsysrfdaa6/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-add-remove-kernelsysrfdaa6/tests/tests_password.yml:21 ----------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---