# 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-selinux8ghww0i4/.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_accept_eula.yml ************************************************ 2 plays in /WORKDIR/git-storage-selinux8ghww0i4/tests/tests_accept_eula.yml PLAY [all] ********************************************************************* TASK [Include vault variables] ************************************************* task path: /WORKDIR/git-storage-selinux8ghww0i4/tests/tests_accept_eula.yml:4 Wednesday 06 December 2023 08:36:52 +0000 (0:00:00.027) 0:00:00.027 **** ok: [sut] => { "ansible_facts": { "mssql_password": { "__ansible_vault": "$ANSIBLE_VAULT;1.1;AES256\n66336361663164656232326461653662643537386337346563613939356466313835383235313234\n3634333565616161316639666662613564353237653663610a616639306439653033386664303839\n30663030636161326137656235636230356162373234386461363632353863393161353035316162\n3664353366373231360a343334326337353861366233656330363634353164316434616561333161\n3234\n" } }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinux8ghww0i4/tests/vars/vault-variables.yml" ], "changed": false } PLAY [Ensure that the role runs when EULA are accepted] ************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-storage-selinux8ghww0i4/tests/tests_accept_eula.yml:9 Wednesday 06 December 2023 08:36:52 +0000 (0:00:00.031) 0:00:00.058 **** ok: [sut] TASK [Run the role with default parameters] ************************************ task path: /WORKDIR/git-storage-selinux8ghww0i4/tests/tests_accept_eula.yml:25 Wednesday 06 December 2023 08:36:53 +0000 (0:00:01.028) 0:00:01.087 **** TASK [fedora.linux_system_roles.mssql : Ensure ansible_facts and variables used by role] *** task path: /WORKDIR/git-storage-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:3 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.085) 0:00:01.173 **** included: /WORKDIR/git-storage-selinux8ghww0i4/.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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:3 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.012) 0:00:01.185 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:8 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.021) 0:00:01.207 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__mssql_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__mssql_vars_file is file", "item": "CentOS_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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:8 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.026) 0:00:01.233 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:15 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.011) 0:00:01.245 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:23 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.012) 0:00:01.258 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:30 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.014) 0:00:01.272 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:37 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.010) 0:00:01.283 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:44 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.010) 0:00:01.293 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:51 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.011) 0:00:01.304 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:55 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.010) 0:00:01.315 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:67 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.018) 0:00:01.334 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:75 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.015) 0:00:01.349 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:84 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.014) 0:00:01.364 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:93 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.015) 0:00:01.379 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:103 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.015) 0:00:01.395 **** 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-selinux8ghww0i4/.collection/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:112 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.018) 0:00:01.413 **** 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 variables undefined] ******************** task path: /WORKDIR/git-storage-selinux8ghww0i4/tests/tests_accept_eula.yml:34 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.007) 0:00:01.421 **** fatal: [sut]: FAILED! => {} MSG: The conditional check ''You must define the following variables to set up MSSQL' in ansible_failed_result.msg.0' failed. The error was: error while evaluating conditional ('You must define the following variables to set up MSSQL' in ansible_failed_result.msg.0): {'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, 'true', 'off', '1', 'no', '0', 'n', 'y', 't', 'f', 'yes', 'on', 'false'. The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'true', 'off', '1', 'no', '0', 'n', 'y', 't', 'f', 'yes', 'on', 'false'", '_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, 'true', 'off', '1', 'no', '0', 'n', 'y', 't', 'f', 'yes', 'on', 'false'. The value 'flush_handlers' is not a valid boolean. Valid booleans include: 0, 1, 'true', 'off', '1', 'no', '0', 'n', 'y', 't', 'f', 'yes', 'on', 'false'", '_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-selinux8ghww0i4/tests/tests_accept_eula.yml:40 Wednesday 06 December 2023 08:36:53 +0000 (0:00:00.010) 0:00:01.432 **** ---^---^---^---^---^--- # 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-selinux8ghww0i4/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 ---^---^---^---^---^---