# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] 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.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-storage-selinuxcm4clzg6/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_password_2022.yml ********************************************** 1 plays in /WORKDIR/git-storage-selinuxcm4clzg6/tests/tests_password_2022.yml PLAY [Ensure that the role is idempotent when changing the sa user password] *** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tests_password_2022.yml:3 Wednesday 06 December 2023 09:03:25 +0000 (0:00:00.034) 0:00:00.034 **** ok: [sut] TASK [Run tests_password with SQL Server 2022] ********************************* task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tests_password_2022.yml:16 Wednesday 06 December 2023 09:03:36 +0000 (0:00:10.727) 0:00:10.761 **** included: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/tests_password.yml for sut TASK [Assert fail on EL 7 with version = 2022 and EL 9 with version != 2022] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/tests_password.yml:2 Wednesday 06 December 2023 09:03:36 +0000 (0:00:00.012) 0:00:10.774 **** included: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/assert_fail_on_unsupported_ver.yml for sut TASK [Ensure ansible_facts to get ansible_distribution] ************************ task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/assert_fail_on_unsupported_ver.yml:2 Wednesday 06 December 2023 09:03:36 +0000 (0:00:00.013) 0:00:10.787 **** ok: [sut] TASK [Run the role] ************************************************************ task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/assert_fail_on_unsupported_ver.yml:15 Wednesday 06 December 2023 09:03:41 +0000 (0:00:05.470) 0:00:16.258 **** TASK [fedora.linux_system_roles.mssql : Ensure ansible_facts and variables used by role] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:3 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.098) 0:00:16.357 **** included: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.mssql : Ensure ansible_facts used by role] ***** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:3 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.024) 0:00:16.382 **** skipping: [sut] => { "changed": false, "false_condition": "__mssql_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Set platform/version specific variables] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:8 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.022) 0:00:16.404 **** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/9/prod/", "__mssql_confined_supported": true, "__mssql_server_repository": "https://packages.microsoft.com/rhel/9/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2022 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/9/prod/", "__mssql_confined_supported": true, "__mssql_server_repository": "https://packages.microsoft.com/rhel/9/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2022 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=RedHat_7.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/7/prod/", "__mssql_confined_supported": false, "__mssql_server_repository": "https://packages.microsoft.com/rhel/7/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2017, 2019 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [sut] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__mssql_vars_file is file", "item": "RedHat_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:8 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.041) 0:00:16.446 **** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [fedora.linux_system_roles.mssql : Print that the mssql_input_sql_file variable is deprecated] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:15 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.022) 0:00:16.468 **** skipping: [sut] => { "false_condition": "mssql_input_sql_file is defined" } TASK [fedora.linux_system_roles.mssql : Link the deprecated mssql_input_sql_file fact] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:23 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.020) 0:00:16.489 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_input_sql_file is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Print that the variable is deprecated] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:30 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.020) 0:00:16.509 **** skipping: [sut] => { "false_condition": "mssql_ha_listener_port is defined" } TASK [fedora.linux_system_roles.mssql : Link the deprecated mssql_ha_listener_port fact] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:37 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.021) 0:00:16.530 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ha_listener_port is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Print that the mssql_ad_sql_user_name variable is deprecated] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:44 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.021) 0:00:16.551 **** skipping: [sut] => { "false_condition": "mssql_ad_sql_user_name is defined" } TASK [fedora.linux_system_roles.mssql : Link the deprecated mssql_ad_sql_user_name fact] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:51 Wednesday 06 December 2023 09:03:41 +0000 (0:00:00.021) 0:00:16.573 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ad_sql_user_name is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify that the user accepts EULA variables] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:55 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.020) 0:00:16.594 **** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:67 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.023) 0:00:16.618 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ha_configure | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:75 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.020) 0:00:16.638 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ha_configure | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:84 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.019) 0:00:16.657 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ha_configure | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify that mssql_ha_prep_for_pacemaker is provided correctly] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:93 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.019) 0:00:16.677 **** skipping: [sut] => { "changed": false, "false_condition": "mssql_ha_ag_cluster_type | lower == 'none'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify that selinux variables are used on supported platforms] *** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:103 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.020) 0:00:16.698 **** skipping: [sut] => { "changed": false, "false_condition": "(mssql_manage_selinux | bool) or (mssql_run_selinux_confined | bool)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Gather package facts] ****************** task path: /WORKDIR/git-storage-selinuxcm4clzg6/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:112 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.022) 0:00:16.721 **** fatal: [sut]: FAILED! => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result" } TASK [Assert that the role failed with EL < 8 not supported] ******************* task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/assert_fail_on_unsupported_ver.yml:26 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.020) 0:00:16.741 **** fatal: [sut]: FAILED! => {} MSG: The conditional check ''You must set the mssql_version variable to one of' in ansible_failed_result.msg' failed. The error was: error while evaluating conditional ('You must set the mssql_version variable to one of' in ansible_failed_result.msg): {'failed': True, 'msg': "the field 'no_log' has an invalid value ({{ __mssql_gather_facts_log }}), and could not be converted to an bool.The error was: The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'off', 'no', 'f', 'true', 'y', 'n', 'false', '1', 't', 'yes', 'on', '0'. The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'off', 'no', 'f', 'true', 'y', 'n', 'false', '1', 't', 'yes', 'on', '0'", '_ansible_no_log': '{{ __mssql_gather_facts_log }}'}: '__mssql_gather_facts_log' is undefined. '__mssql_gather_facts_log' is undefined. {'failed': True, 'msg': "the field 'no_log' has an invalid value ({{ __mssql_gather_facts_log }}), and could not be converted to an bool.The error was: The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'off', 'no', 'f', 'true', 'y', 'n', 'false', '1', 't', 'yes', 'on', '0'. The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'off', 'no', 'f', 'true', 'y', 'n', 'false', '1', 't', 'yes', 'on', '0'", '_ansible_no_log': '{{ __mssql_gather_facts_log }}'}: '__mssql_gather_facts_log' is undefined. '__mssql_gather_facts_log' is undefined TASK [Clean up after the role invocation] ************************************** task path: /WORKDIR/git-storage-selinuxcm4clzg6/tests/tests_password_2022.yml:19 Wednesday 06 December 2023 09:03:42 +0000 (0:00:00.022) 0:00:16.764 **** ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ERROR! conflicting action statements: shell, warn The error appears to be in '/WORKDIR/git-storage-selinuxcm4clzg6/tests/tasks/cleanup.yml': line 58, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Remove related files ^ here ---^---^---^---^---^---