ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpn59lzvet executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.019) 0:00:00.019 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.383073", "end": "2022-08-03 15:22:36.969465", "rc": 0, "start": "2022-08-03 15:22:36.586392" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:22:36 +0000 (0:00:01.027) 0:00:01.046 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 1.03s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_default_2019.yml *********************************************** 1 plays in /tmp/tmpek3rdkcs/tests/tests_default_2019.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:3 Wednesday 03 August 2022 15:22:36 +0000 (0:00:00.010) 0:00:01.056 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Run the role with default parameters] ************************************ task path: /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:8 Wednesday 03 August 2022 15:22:38 +0000 (0:00:02.085) 0:00:03.142 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:3 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.090) 0:00:03.233 ****** included: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.mssql : Ensure ansible_facts used by role] ************ task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:3 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.030) 0:00:03.263 ****** ok: [/cache/centos-8.qcow2] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:11 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.541) 0:00:03.804 ****** ok: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/8/prod/", "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/" }, "ansible_included_var_files": [ "/tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:8 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.075) 0:00:03.880 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:12 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.056) 0:00:03.936 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:16 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.056) 0:00:03.993 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:22 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.022) 0:00:04.016 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that the user accepts EULA variables] *** task path: /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:27 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.024) 0:00:04.040 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "assertion": "mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula | bool", "changed": false, "evaluated_to": false } MSG: ['You must accept EULA by setting the following variables to true:', 'mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula', 'mssql_accept_microsoft_cli_utilities_for_sql_server_eula', 'mssql_accept_microsoft_sql_server_standard_eula'] TASK [Assert that the role failed with EULA not accepted] ********************** task path: /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:17 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.042) 0:00:04.082 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=8 changed=1 unreachable=0 failed=0 skipped=2 rescued=1 ignored=0 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.038) 0:00:04.121 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 2.09s /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:3 ------------------------------- Enable HA repos --------------------------------------------------------- 1.03s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.mssql : Ensure ansible_facts used by role ------------ 0.54s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:3 ---- Run the role with default parameters ------------------------------------ 0.09s /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:8 ------------------------------- linux-system-roles.mssql : Set platform/version specific variables ------ 0.08s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:11 --- linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact ------ 0.06s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:12 ------- linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact ------ 0.06s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:8 -------- linux-system-roles.mssql : Verify that the user accepts EULA variables --- 0.04s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:27 ------- Assert that the role failed with EULA not accepted ---------------------- 0.04s /tmp/tmpek3rdkcs/tests/tests_default_2019.yml:17 ------------------------------ linux-system-roles.mssql : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:3 -------- linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact --- 0.02s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:22 ------- linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact --- 0.02s /tmp/tmpek3rdkcs/tests/roles/linux-system-roles.mssql/tasks/main.yml:16 ------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpn59lzvet executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 16:08:09 +0000 (0:00:00.019) 0:00:00.019 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.376811", "end": "2022-08-03 16:08:09.245184", "rc": 0, "start": "2022-08-03 16:08:08.868373" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:08:10 +0000 (0:00:01.021) 0:00:01.041 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 1.02s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_default_2019.yml *********************************************** 1 plays in /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:3 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.009) 0:00:01.051 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Run the role with default parameters] ************************************ task path: /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:8 Wednesday 03 August 2022 16:08:11 +0000 (0:00:01.070) 0:00:02.122 ****** TASK [fedora.linux_system_roles.mssql : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:3 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.115) 0:00:02.237 ****** included: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.mssql : Ensure ansible_facts used by role] ***** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:3 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.031) 0:00:02.269 ****** ok: [/cache/centos-8.qcow2] TASK [fedora.linux_system_roles.mssql : Set platform/version specific variables] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:10 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.538) 0:00:02.807 ****** ok: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/8/prod/", "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/" }, "ansible_included_var_files": [ "/tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:8 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.052) 0:00:02.860 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [fedora.linux_system_roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:12 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.029) 0:00:02.889 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [fedora.linux_system_roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:16 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.033) 0:00:02.923 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Link the deprecated mssql_input_sql_file fact] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:22 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.029) 0:00:02.952 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.mssql : Verify that the user accepts EULA variables] *** task path: /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:27 Wednesday 03 August 2022 16:08:12 +0000 (0:00:00.026) 0:00:02.979 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "assertion": "mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula | bool", "changed": false, "evaluated_to": false } MSG: ['You must accept EULA by setting the following variables to true:', 'mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula', 'mssql_accept_microsoft_cli_utilities_for_sql_server_eula', 'mssql_accept_microsoft_sql_server_standard_eula'] TASK [Assert that the role failed with EULA not accepted] ********************** task path: /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:17 Wednesday 03 August 2022 16:08:12 +0000 (0:00:00.045) 0:00:03.024 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=8 changed=1 unreachable=0 failed=0 skipped=2 rescued=1 ignored=0 Wednesday 03 August 2022 16:08:12 +0000 (0:00:00.040) 0:00:03.064 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:3 ------------------------- Enable HA repos --------------------------------------------------------- 1.02s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.mssql : Ensure ansible_facts used by role ----- 0.54s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:3 Run the role with default parameters ------------------------------------ 0.12s /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:8 ------------------------- fedora.linux_system_roles.mssql : Set platform/version specific variables --- 0.05s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/set_vars.yml:10 fedora.linux_system_roles.mssql : Verify that the user accepts EULA variables --- 0.05s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:27 Assert that the role failed with EULA not accepted ---------------------- 0.04s /tmp/tmpsacc72k6/tests/mssql/tests_default_2019.yml:17 ------------------------ fedora.linux_system_roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact --- 0.03s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:12 fedora.linux_system_roles.mssql : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:3 fedora.linux_system_roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact --- 0.03s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:8 fedora.linux_system_roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact --- 0.03s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:16 fedora.linux_system_roles.mssql : Link the deprecated mssql_input_sql_file fact --- 0.03s /tmp/tmpn59lzvet/ansible_collections/fedora/linux_system_roles/roles/mssql/tasks/main.yml:22