# 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-bios-uefii56nsctm/tests/tests_password.yml PLAY [Test bootloader_settings variable] *************************************** META: ran handlers TASK [Set boot loader password] ************************************************ task path: /WORKDIR/git-bios-uefii56nsctm/tests/tests_password.yml:9 Monday 26 February 2024 18:35:08 +0000 (0:00:00.012) 0:00:00.012 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Monday 26 February 2024 18:35:08 +0000 (0:00:00.023) 0:00:00.035 ******* included: /WORKDIR/git-bios-uefii56nsctm/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-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Monday 26 February 2024 18:35:08 +0000 (0:00:00.012) 0:00:00.048 ******* ok: [sut] TASK [linux-system-roles.bootloader : Check if system is ostree] *************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:12 Monday 26 February 2024 18:35:09 +0000 (0:00:00.537) 0:00:00.585 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:17 Monday 26 February 2024 18:35:09 +0000 (0:00:00.187) 0:00:00.773 ******* ok: [sut] => { "ansible_facts": { "__bootloader_is_ostree": false }, "changed": false } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 Monday 26 February 2024 18:35:09 +0000 (0:00:00.018) 0:00:00.791 ******* 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_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Monday 26 February 2024 18:35:09 +0000 (0:00:00.026) 0:00:00.818 ******* 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-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 Monday 26 February 2024 18:35:10 +0000 (0:00:00.954) 0:00:01.773 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 Monday 26 February 2024 18:35:10 +0000 (0:00:00.174) 0:00:01.947 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Monday 26 February 2024 18:35:10 +0000 (0:00:00.115) 0:00:02.062 ******* 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 : Get stat of /etc/default/grub] *********** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 Monday 26 February 2024 18:35:10 +0000 (0:00:00.029) 0:00:02.091 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1708443955.650116, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d45f560efc7eafef37bf56677f0fab9fc0276c8b", "ctime": 1708443955.6511161, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 144314, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1708443955.650116, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 249, "uid": 0, "version": "18446744071638590892", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 Monday 26 February 2024 18:35:11 +0000 (0:00:00.144) 0:00:02.236 ******* ok: [sut] => { "changed": false } TASK [linux-system-roles.bootloader : Regenerate grub config in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:51 Monday 26 February 2024 18:35:11 +0000 (0:00:00.176) 0:00:02.412 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Monday 26 February 2024 18:35:11 +0000 (0:00:00.009) 0:00:02.422 ******* fatal: [sut]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: '__bootloader_grub_conf_stat' is undefined The error appears to be in '/WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml': line 59, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # timeout value to the config - name: Update boot loader timeout configuration in {{ __bootloader_grub_conf }} ^ here We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" TASK [Remove boot loader password] ********************************************* task path: /WORKDIR/git-bios-uefii56nsctm/tests/tests_password.yml:38 Monday 26 February 2024 18:35:11 +0000 (0:00:00.010) 0:00:02.433 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Monday 26 February 2024 18:35:11 +0000 (0:00:00.019) 0:00:02.452 ******* included: /WORKDIR/git-bios-uefii56nsctm/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-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Monday 26 February 2024 18:35:11 +0000 (0:00:00.009) 0:00:02.462 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Check if system is ostree] *************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:12 Monday 26 February 2024 18:35:11 +0000 (0:00:00.008) 0:00:02.470 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:17 Monday 26 February 2024 18:35:11 +0000 (0:00:00.007) 0:00:02.477 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 Monday 26 February 2024 18:35:11 +0000 (0:00:00.007) 0:00:02.485 ******* 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_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Monday 26 February 2024 18:35:11 +0000 (0:00:00.018) 0:00:02.503 ******* 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-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 Monday 26 February 2024 18:35:11 +0000 (0:00:00.567) 0:00:03.071 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 Monday 26 February 2024 18:35:12 +0000 (0:00:00.117) 0:00:03.188 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Monday 26 February 2024 18:35:12 +0000 (0:00:00.115) 0:00:03.304 ******* 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 : Get stat of /etc/default/grub] *********** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 Monday 26 February 2024 18:35:12 +0000 (0:00:00.013) 0:00:03.318 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1708972511.0866227, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d45f560efc7eafef37bf56677f0fab9fc0276c8b", "ctime": 1708443955.6511161, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 144314, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1708443955.650116, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 249, "uid": 0, "version": "18446744071638590892", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 Monday 26 February 2024 18:35:12 +0000 (0:00:00.129) 0:00:03.447 ******* ok: [sut] => { "changed": false } TASK [linux-system-roles.bootloader : Regenerate grub config in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:51 Monday 26 February 2024 18:35:12 +0000 (0:00:00.121) 0:00:03.568 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Monday 26 February 2024 18:35:12 +0000 (0:00:00.008) 0:00:03.577 ******* fatal: [sut]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: '__bootloader_grub_conf_stat' is undefined The error appears to be in '/WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml': line 59, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # timeout value to the config - name: Update boot loader timeout configuration in {{ __bootloader_grub_conf }} ^ here We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" to retry, use: --limit @/tmp/tests_password.retry PLAY RECAP ********************************************************************* sut : ok=17 changed=0 unreachable=0 failed=2 skipped=7 rescued=0 ignored=0 Monday 26 February 2024 18:35:12 +0000 (0:00:00.008) 0:00:03.585 ******* =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 0.95s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure required packages are installed --- 0.57s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.54s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Check if system is ostree --------------- 0.19s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:12 linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub --- 0.18s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.17s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 linux-system-roles.bootloader : Get stat of /etc/default/grub ----------- 0.14s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 linux-system-roles.bootloader : Get stat of /etc/default/grub ----------- 0.13s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub --- 0.12s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.12s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.03s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 Set boot loader password ------------------------------------------------ 0.02s /WORKDIR/git-bios-uefii56nsctm/tests/tests_password.yml:9 --------------------- Remove boot loader password --------------------------------------------- 0.02s /WORKDIR/git-bios-uefii56nsctm/tests/tests_password.yml:38 -------------------- linux-system-roles.bootloader : Set flag to indicate system is ostree --- 0.02s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:17 linux-system-roles.bootloader : Set platform/version specific variables --- 0.02s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 linux-system-roles.bootloader : Set boot loader configuration files ----- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---