# 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-mainyi7n7yln/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:7 Wednesday 06 December 2023 12:51:55 +0000 (0:00:00.012) 0:00:00.012 **** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Wednesday 06 December 2023 12:51:55 +0000 (0:00:00.023) 0:00:00.035 **** included: /WORKDIR/git-mainyi7n7yln/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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Wednesday 06 December 2023 12:51:55 +0000 (0:00:00.011) 0:00:00.046 **** ok: [sut] TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Wednesday 06 December 2023 12:51:57 +0000 (0:00:01.919) 0:00:01.966 **** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Wednesday 06 December 2023 12:51:57 +0000 (0:00:00.029) 0:00:01.995 **** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Wednesday 06 December 2023 12:52:00 +0000 (0:00:03.108) 0:00:05.104 **** ok: [sut] => { "changed": false, "mod_boot_args_cmd": [], "rm_boot_args_cmd": [] } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Wednesday 06 December 2023 12:52:00 +0000 (0:00:00.270) 0:00:05.375 **** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Wednesday 06 December 2023 12:52:01 +0000 (0:00:00.287) 0:00:05.663 **** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Wednesday 06 December 2023 12:52:01 +0000 (0:00:00.262) 0:00:05.925 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Wednesday 06 December 2023 12:52:01 +0000 (0:00:00.023) 0:00:05.948 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Wednesday 06 December 2023 12:52:01 +0000 (0:00:00.499) 0:00:06.447 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.664) 0:00:07.111 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.013) 0:00:07.125 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get contents of /boot/grub2/user.cfg] ************************************ task path: /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:13 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.012) 0:00:07.137 **** ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/user.cfg" ], "delta": "0:00:00.003573", "end": "2023-12-06 12:52:02.712332", "failed_when_result": false, "rc": 0, "start": "2023-12-06 12:52:02.708759" } STDOUT: GRUB2_PASSWORD=grub.pbkdf2.sha512.10000.450421800127CE0E3AA5749EE54F526AD01978DFE14F511F6A70C77F085705907F92805F3E484E1BF62283C9818D3607DD076D7180C0E2C49CB1E50773DCEF0A.28C05F548BBB0BAA16B0E891D51E60A9F23A4A96253EA8FFA51D0B8811ECCD91894EB17B65E8E57E4BB15096DF9175BA17C33BC496FAB3538921AC01CD362CE8 TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:21 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.212) 0:00:07.349 **** TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.020) 0:00:07.370 **** included: /WORKDIR/git-mainyi7n7yln/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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.032) 0:00:07.403 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.011) 0:00:07.414 **** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Wednesday 06 December 2023 12:52:02 +0000 (0:00:00.022) 0:00:07.437 **** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Wednesday 06 December 2023 12:52:05 +0000 (0:00:03.095) 0:00:10.532 **** ok: [sut] => { "changed": false, "mod_boot_args_cmd": [], "rm_boot_args_cmd": [] } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.216) 0:00:10.749 **** ok: [sut] => { "backup": "", "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.218) 0:00:10.968 **** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.199) 0:00:11.167 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.011) 0:00:11.179 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.008) 0:00:11.188 **** 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-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.007) 0:00:11.195 **** changed: [sut] => { "changed": true, "path": "/boot/grub2/user.cfg", "state": "absent" } TASK [linux-system-roles.bootloader : Collect bootloader facts] **************** task path: /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:74 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.280) 0:00:11.476 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get stat of /boot/grub2/user.cfg] **************************************** task path: /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:27 Wednesday 06 December 2023 12:52:06 +0000 (0:00:00.008) 0:00:11.484 **** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Verify that user conf doesn't exist] ************************************* task path: /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:32 Wednesday 06 December 2023 12:52:07 +0000 (0:00:00.208) 0:00:11.692 **** 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 Wednesday 06 December 2023 12:52:07 +0000 (0:00:00.009) 0:00:11.701 **** =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 3.11s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 3.10s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 1.92s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Put boot loader password to /boot/grub2/user.cfg --- 0.66s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Generate boot loader password ----------- 0.50s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:47 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.29s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Remove boot loader password configuration --- 0.28s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:67 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.27s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 linux-system-roles.bootloader : Determine platform type ----------------- 0.26s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Update boot loader timeout configuration --- 0.22s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:18 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.22s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:11 Get contents of /boot/grub2/user.cfg ------------------------------------ 0.21s /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:13 ------------------------- Get stat of /boot/grub2/user.cfg ---------------------------------------- 0.21s /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:27 ------------------------- linux-system-roles.bootloader : Determine platform type ----------------- 0.20s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:7 -------------------------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.02s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/main.yml:30 linux-system-roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-mainyi7n7yln/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:9 Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-mainyi7n7yln/tests/tests_password.yml:21 ------------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---