# 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-mainaetj1azo/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:7 Thursday 07 December 2023 13:32:15 +0000 (0:00:00.014) 0:00:00.014 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Thursday 07 December 2023 13:32:15 +0000 (0:00:00.036) 0:00:00.050 ***** included: /WORKDIR/git-mainaetj1azo/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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Thursday 07 December 2023 13:32:16 +0000 (0:00:00.060) 0:00:00.111 ***** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Thursday 07 December 2023 13:32:16 +0000 (0:00:00.699) 0:00:00.810 ***** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Thursday 07 December 2023 13:32:16 +0000 (0:00:00.041) 0:00:00.851 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Thursday 07 December 2023 13:32:18 +0000 (0:00:01.865) 0:00:02.717 ***** ok: [sut] => { "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Thursday 07 December 2023 13:32:18 +0000 (0:00:00.279) 0:00:02.996 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Thursday 07 December 2023 13:32:19 +0000 (0:00:00.330) 0:00:03.327 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Thursday 07 December 2023 13:32:19 +0000 (0:00:00.285) 0:00:03.613 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Thursday 07 December 2023 13:32:19 +0000 (0:00:00.037) 0:00:03.650 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Thursday 07 December 2023 13:32:20 +0000 (0:00:00.577) 0:00:04.228 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Thursday 07 December 2023 13:32:20 +0000 (0:00:00.764) 0:00:04.993 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Thursday 07 December 2023 13:32:20 +0000 (0:00:00.008) 0:00:05.001 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:13 Thursday 07 December 2023 13:32:20 +0000 (0:00:00.011) 0:00:05.012 ***** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003027", "end": "2023-12-07 13:32:21.130286", "failed_when_result": false, "rc": 0, "start": "2023-12-07 13:32:21.127259" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.68B5FAB4AF91AD482A1AD77A3E210CAE07757AC38EE996259B3441387115A08EA6B93BB0649B20BC58AF4EE1EB50C3DE6922D09EEFF664382DB9F7AB6C85DF79.2FF25F3295876BE432FF58C141538232FEE59BF67690481E31765E5BD7E646291C2AB99B2BBA0F69EA9B26E51804EDEA23FBF730F6F8054BB2FA828FDA4EE3B6 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:21 Thursday 07 December 2023 13:32:21 +0000 (0:00:00.205) 0:00:05.218 ***** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Thursday 07 December 2023 13:32:21 +0000 (0:00:00.045) 0:00:05.263 ***** included: /WORKDIR/git-mainaetj1azo/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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Thursday 07 December 2023 13:32:21 +0000 (0:00:00.044) 0:00:05.307 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Thursday 07 December 2023 13:32:21 +0000 (0:00:00.012) 0:00:05.320 ***** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Thursday 07 December 2023 13:32:21 +0000 (0:00:00.034) 0:00:05.354 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Thursday 07 December 2023 13:32:22 +0000 (0:00:01.566) 0:00:06.921 ***** ok: [sut] => { "changed": false } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.211) 0:00:07.132 ***** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.248) 0:00:07.380 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.257) 0:00:07.637 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.042) 0:00:07.680 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.011) 0:00:07.691 ***** 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-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Thursday 07 December 2023 13:32:23 +0000 (0:00:00.008) 0:00:07.700 ***** changed: [sut] => { "changed": true, "path": "/boot/grub2/user.cfg", "state": "absent" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Thursday 07 December 2023 13:32:24 +0000 (0:00:00.386) 0:00:08.087 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:27 Thursday 07 December 2023 13:32:24 +0000 (0:00:00.019) 0:00:08.106 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:32 Thursday 07 December 2023 13:32:24 +0000 (0:00:00.280) 0:00:08.386 ***** 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 07 December 2023 13:32:24 +0000 (0:00:00.063) 0:00:08.450 ***** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 1.87s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 1.57s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.76s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.70s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Generate boot loader password ----------- 0.58s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.39s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.33s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Determine platform type ----------------- 0.29s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.28s /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:27 ------------------------- linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.28s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.26s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.25s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.21s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.21s /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:13 ------------------------- Verify that user conf doesn't exist ------------------------------------- 0.06s /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:32 ------------------------- linux-system-roles.bootloader : Set platform/version specific variables --- 0.06s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Remove boot loader password --------------------------------------------- 0.05s /WORKDIR/git-mainaetj1azo/tests/tests_password.yml:21 ------------------------- linux-system-roles.bootloader : Set platform/version specific variables --- 0.04s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.04s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 linux-system-roles.bootloader : Set platform/version specific variables --- 0.04s /WORKDIR/git-mainaetj1azo/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---