# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Ensure that tls encryption configuration works] ************************** TASK [Gathering Facts] ********************************************************* Wednesday 31 August 2022 11:33:43 +0000 (0:00:00.019) 0:00:00.019 ****** ok: [sut] TASK [Ensure the openssl package] ********************************************** Wednesday 31 August 2022 11:33:44 +0000 (0:00:01.108) 0:00:01.128 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create a tempfile for a certificate on hosts] **************************** Wednesday 31 August 2022 11:33:46 +0000 (0:00:02.021) 0:00:03.150 ****** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.evy_wi3y", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Create a tempfile for a private key on hosts] **************************** Wednesday 31 August 2022 11:33:47 +0000 (0:00:00.356) 0:00:03.506 ****** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.fjl2oebi", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Generate a self-signed certificate and public key] *********************** Wednesday 31 August 2022 11:33:47 +0000 (0:00:00.234) 0:00:03.741 ****** changed: [sut] => { "changed": true, "cmd": [ "openssl", "req", "-x509", "-nodes", "-newkey", "rsa:2048", "-subj", "/CN=10.31.13.69", "-out", "/tmp/ansible.evy_wi3y", "-keyout", "/tmp/ansible.fjl2oebi", "-days", "365" ], "delta": "0:00:00.192028", "end": "2022-08-31 11:33:47.848787", "rc": 0, "start": "2022-08-31 11:33:47.656759" } STDERR: Generating a RSA private key ...............................................................................................+++++ .......+++++ writing new private key to '/tmp/ansible.fjl2oebi' ----- TASK [Copy certificate files to local tmp] ************************************* Wednesday 31 August 2022 11:33:47 +0000 (0:00:00.564) 0:00:04.306 ****** changed: [sut] => (item=/tmp/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": true, "checksum": "b5f834bfbfdb35f8e5f2963bb0a34fe69b954b86", "dest": "/tmp/ansible.evy_wi3y", "item": "/tmp/ansible.evy_wi3y", "md5sum": "42c72e60996fac598ef5e80ed82278c1", "remote_checksum": "b5f834bfbfdb35f8e5f2963bb0a34fe69b954b86", "remote_md5sum": null } changed: [sut] => (item=/tmp/ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": true, "checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "dest": "/tmp/ansible.fjl2oebi", "item": "/tmp/ansible.fjl2oebi", "md5sum": "4ddb29fd7455cbb9316df9d87dfff505", "remote_checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "remote_md5sum": null } TASK [Copy a private key to the playbook directory to test a relative path] **** Wednesday 31 August 2022 11:33:48 +0000 (0:00:00.766) 0:00:05.072 ****** changed: [sut -> localhost] => { "changed": true, "checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "dest": "./ansible.fjl2oebi", "gid": 1001, "group": "jenkins", "md5sum": "4ddb29fd7455cbb9316df9d87dfff505", "mode": "0600", "owner": "jenkins", "size": 1708, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1661945628.6999235-16942-150699801073209/source", "state": "file", "uid": 1000090000 } TASK [Run role] **************************************************************** Wednesday 31 August 2022 11:33:49 +0000 (0:00:00.677) 0:00:05.749 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 11:33:49 +0000 (0:00:00.131) 0:00:05.881 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml for sut TASK [linux-system-roles.mssql : Ensure ansible_facts used by role] ************ Wednesday 31 August 2022 11:33:49 +0000 (0:00:00.040) 0:00:05.921 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 11:33:49 +0000 (0:00:00.444) 0:00:06.365 ****** ok: [sut] => (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": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-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/8/prod/", "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/" }, "ansible_included_var_files": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.114) 0:00:06.480 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.040) 0:00:06.520 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Print that the variable is deprecated] ******** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.040) 0:00:06.560 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.035) 0:00:06.596 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Print that the mssql_input_sql_file variable is deprecated] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.034) 0:00:06.630 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.035) 0:00:06.665 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that the user accepts EULA variables] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.037) 0:00:06.703 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_version variable is provided correctly] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.097) 0:00:06.800 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_upgrade variable is provided correctly] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.091) 0:00:06.892 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.078) 0:00:06.970 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.049) 0:00:07.020 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once] *** Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.049) 0:00:07.069 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 11:33:50 +0000 (0:00:00.047) 0:00:07.116 ****** ok: [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.mssql : Verify if mssql_version is not smaller then the existing SQL Server version] *** Wednesday 31 August 2022 11:33:52 +0000 (0:00:01.880) 0:00:08.997 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Deploy the GPG key for Microsoft repositories] *** Wednesday 31 August 2022 11:33:52 +0000 (0:00:00.068) 0:00:09.066 ****** changed: [sut] => { "changed": true } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 11:33:53 +0000 (0:00:00.856) 0:00:09.923 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove the Microsoft SQL Server 2017 repository to upgrade to 2019] *** Wednesday 31 August 2022 11:33:53 +0000 (0:00:00.066) 0:00:09.990 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server 2019 repository] *** Wednesday 31 August 2022 11:33:53 +0000 (0:00:00.072) 0:00:10.063 ****** changed: [sut] => { "changed": true, "repo": "packages-microsoft-com-mssql-server-2019", "state": "present" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 11:33:54 +0000 (0:00:00.460) 0:00:10.523 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: gdb-8.2-19.el8.x86_64", "Installed: gdb-headless-8.2-19.el8.x86_64", "Installed: cyrus-sasl-2.1.27-6.el8_5.x86_64", "Installed: gc-7.6.4-3.el8.x86_64", "Installed: libatomic-8.5.0-15.el8.x86_64", "Installed: libatomic_ops-7.6.2-3.el8.x86_64", "Installed: gcc-gdb-plugin-8.5.0-15.el8.x86_64", "Installed: cyrus-sasl-gssapi-2.1.27-6.el8_5.x86_64", "Installed: guile-5:2.0.14-7.el8.x86_64", "Installed: libtool-ltdl-2.4.6-25.el8.x86_64", "Installed: libipt-1.6.1-8.el8.x86_64", "Installed: libbabeltrace-1.5.4-4.el8.x86_64", "Installed: bzip2-1.0.6-26.el8.x86_64", "Installed: mssql-server-15.0.4249.2-1.x86_64" ] } TASK [linux-system-roles.mssql : Ensure that the openldap-compat package is installed] *** Wednesday 31 August 2022 11:34:46 +0000 (0:00:52.694) 0:01:03.218 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the errorlog file exists and its location] *** Wednesday 31 August 2022 11:34:46 +0000 (0:00:00.048) 0:01:03.266 ****** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail\nerrorlog=\"$(grep '^errorlogfile = ' /var/opt/mssql/mssql.conf \\\n| sed 's/errorlogfile : //')\" || :\nif [ -s \"${errorlog}\" ]; then\n echo \"${errorlog}\"\nelif [ -s /var/opt/mssql/log/errorlog ]; then\n echo /var/opt/mssql/log/errorlog\nelse\n echo \"\"\nfi\n", "delta": "0:00:00.007423", "end": "2022-08-31 11:34:47.095732", "rc": 0, "start": "2022-08-31 11:34:47.088309" } TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 11:34:47 +0000 (0:00:00.329) 0:01:03.596 ****** ok: [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.mssql : Verify that the variables required for setting up MSSQL are defined] *** Wednesday 31 August 2022 11:34:49 +0000 (0:00:02.097) 0:01:05.694 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 11:34:49 +0000 (0:00:00.105) 0:01:05.799 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "-n", "setup" ], "delta": "0:00:07.462729", "end": "2022-08-31 11:34:57.086992", "rc": 0, "start": "2022-08-31 11:34:49.624263" } STDOUT: The licensing PID was successfully processed. The new edition is [Enterprise Evaluation Edition]. ForceFlush is enabled for this instance. ForceFlush feature is enabled for log durability. The license terms for this product can be found in /usr/share/doc/mssql-server or downloaded from: https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409 The privacy statement can be viewed at: https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409 Configuring SQL Server... Setup has completed successfully. SQL Server is now starting. STDERR: Created symlink /etc/systemd/system/multi-user.target.wants/mssql-server.service → /usr/lib/systemd/system/mssql-server.service. TASK [linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed] *** Wednesday 31 August 2022 11:34:57 +0000 (0:00:07.775) 0:01:13.575 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: tuned-profiles-mssql-2.19.0-1.el8.noarch" ] } TASK [linux-system-roles.mssql : Ensure that the tuned service is started and enabled] *** Wednesday 31 August 2022 11:35:01 +0000 (0:00:04.093) 0:01:17.668 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:26:40 UTC", "ActiveEnterTimestampMonotonic": "12425322", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target systemd-sysctl.service systemd-journald.socket network.target dbus.socket dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:26:39 UTC", "AssertTimestampMonotonic": "11159928", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ConditionTimestampMonotonic": "11159926", "ConfigurationDirectoryMode": "0755", "Conflicts": "tlp.service power-profiles-daemon.service shutdown.target auto-cpufreq.service cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "744", "ExecMainStartTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ExecMainStartTimestampMonotonic": "11161662", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-31 11:26:39 UTC", "InactiveExitTimestampMonotonic": "11161759", "InvocationID": "b578f2cc48744f7ba6c8622b30f0bc24", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14143", "LimitNPROCSoft": "14143", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "744", "MemoryAccounting": "yes", "MemoryCurrent": "21405696", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.service polkit.service sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:26:40 UTC", "StateChangeTimestampMonotonic": "12425322", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "22628", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:26:40 UTC", "WatchdogTimestampMonotonic": "12425318", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 11:35:02 +0000 (0:00:01.172) 0:01:18.840 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.295214", "end": "2022-08-31 11:35:03.092183", "rc": 0, "start": "2022-08-31 11:35:02.796969" } STDOUT: Current active profile: virtual-guest TASK [linux-system-roles.mssql : Attempt to add mssql to the list of Tuned profiles] *** Wednesday 31 August 2022 11:35:03 +0000 (0:00:00.743) 0:01:19.584 ****** changed: [sut] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest", "mssql" ], "delta": "0:00:01.389508", "end": "2022-08-31 11:35:04.986480", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:03.596972" } TASK [linux-system-roles.mssql : Remove troublemaking include from the mssql profile] *** Wednesday 31 August 2022 11:35:05 +0000 (0:00:01.884) 0:01:21.469 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Add the fixed mssql profile to the list of Tuned profiles] *** Wednesday 31 August 2022 11:35:05 +0000 (0:00:00.054) 0:01:21.523 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server Tools repository] *** Wednesday 31 August 2022 11:35:05 +0000 (0:00:00.083) 0:01:21.607 ****** changed: [sut] => { "changed": true, "repo": "packages-microsoft-com-prod", "state": "present" } TASK [linux-system-roles.mssql : Ensure that SQL Server client tools are installed] *** Wednesday 31 August 2022 11:35:05 +0000 (0:00:00.283) 0:01:21.891 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: unixODBC-devel-2.3.7-1.rh.x86_64", "Installed: mssql-tools-17.10.1.1-1.x86_64", "Installed: msodbcsql17-17.10.1.1-1.x86_64", "Installed: unixODBC-2.3.7-1.rh.x86_64" ] } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 11:35:10 +0000 (0:00:05.151) 0:01:27.043 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the set password matches the existing password] *** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.059) 0:01:27.102 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.058) 0:01:27.161 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the password of the sa user] *********** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.086) 0:01:27.247 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Pre-input SQL scripts to SQL Server] ********** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.059) 0:01:27.307 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.045) 0:01:27.353 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:35:10 +0000 (0:00:00.057) 0:01:27.410 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.057) 0:01:27.467 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.057) 0:01:27.525 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.058) 0:01:27.583 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.074) 0:01:27.658 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the TCP port setting to 1433] ******* Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.071) 0:01:27.730 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tcpport setting] ************** Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.085) 0:01:27.816 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004414", "end": "2022-08-31 11:35:11.634278", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:11.629864" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 11:35:11 +0000 (0:00:00.296) 0:01:28.112 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.142059", "end": "2022-08-31 11:35:12.079746", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:11.937687" } STDOUT: Validation error on setting 'network.tcpport' Port '1433' is already in use. Please use another port TASK [linux-system-roles.mssql : Unset the network tcpport setting] ************ Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.458) 0:01:28.571 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Close the previously set SQL Server TCP port if it changed] ************** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.053) 0:01:28.624 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.071) 0:01:28.696 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-fts package] ********** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.099) 0:01:28.795 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.060) 0:01:28.856 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.057) 0:01:28.914 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.060) 0:01:28.975 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the 3979 trace flag is enabled] ****** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.058) 0:01:29.034 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.058) 0:01:29.092 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.062) 0:01:29.155 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.059) 0:01:29.214 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.056) 0:01:29.270 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Copy certificate and private_key files to the host] *** Wednesday 31 August 2022 11:35:12 +0000 (0:00:00.059) 0:01:29.330 ****** changed: [sut] => (item=/tmp/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": true, "checksum": "b5f834bfbfdb35f8e5f2963bb0a34fe69b954b86", "dest": "/etc/pki/tls/certs/ansible.evy_wi3y", "gid": 990, "group": "mssql", "item": "/tmp/ansible.evy_wi3y", "md5sum": "42c72e60996fac598ef5e80ed82278c1", "mode": "0600", "owner": "mssql", "secontext": "system_u:object_r:cert_t:s0", "size": 1119, "src": "/root/.ansible/tmp/ansible-tmp-1661945713.0121906-17320-93652561841766/source", "state": "file", "uid": 990 } changed: [sut] => (item=ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": true, "checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "dest": "/etc/pki/tls/private/ansible.fjl2oebi", "gid": 990, "group": "mssql", "item": "ansible.fjl2oebi", "md5sum": "4ddb29fd7455cbb9316df9d87dfff505", "mode": "0600", "owner": "mssql", "secontext": "system_u:object_r:cert_t:s0", "size": 1708, "src": "/root/.ansible/tmp/ansible-tmp-1661945713.6787333-17320-148699281388043/source", "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 11:35:14 +0000 (0:00:01.406) 0:01:30.736 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlscert setting] ************** Wednesday 31 August 2022 11:35:14 +0000 (0:00:00.130) 0:01:30.867 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlscert = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003875", "end": "2022-08-31 11:35:14.689897", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:14.686022" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlscert setting] ******** Wednesday 31 August 2022 11:35:14 +0000 (0:00:00.300) 0:01:31.167 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlscert", "/etc/pki/tls/certs/ansible.evy_wi3y" ], "delta": "0:00:00.145074", "end": "2022-08-31 11:35:15.146257", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:15.001183" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlscert setting] ************ Wednesday 31 August 2022 11:35:15 +0000 (0:00:00.465) 0:01:31.633 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 11:35:15 +0000 (0:00:00.079) 0:01:31.712 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlskey setting] *************** Wednesday 31 August 2022 11:35:15 +0000 (0:00:00.095) 0:01:31.808 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlskey = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003959", "end": "2022-08-31 11:35:15.632445", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:15.628486" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlskey setting] ********* Wednesday 31 August 2022 11:35:15 +0000 (0:00:00.301) 0:01:32.110 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlskey", "/etc/pki/tls/private/ansible.fjl2oebi" ], "delta": "0:00:00.144250", "end": "2022-08-31 11:35:16.088086", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:15.943836" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlskey setting] ************* Wednesday 31 August 2022 11:35:16 +0000 (0:00:00.464) 0:01:32.574 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 11:35:16 +0000 (0:00:00.080) 0:01:32.655 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlsprotocols setting] ********* Wednesday 31 August 2022 11:35:16 +0000 (0:00:00.096) 0:01:32.751 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlsprotocols = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004037", "end": "2022-08-31 11:35:16.574359", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:16.570322" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlsprotocols setting] *** Wednesday 31 August 2022 11:35:16 +0000 (0:00:00.339) 0:01:33.091 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlsprotocols", "1.2" ], "delta": "0:00:00.140782", "end": "2022-08-31 11:35:17.060070", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:16.919288" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlsprotocols setting] ******* Wednesday 31 August 2022 11:35:17 +0000 (0:00:00.455) 0:01:33.546 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 11:35:17 +0000 (0:00:00.063) 0:01:33.609 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network forceencryption setting] ****** Wednesday 31 August 2022 11:35:17 +0000 (0:00:00.101) 0:01:33.711 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^forceencryption = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003972", "end": "2022-08-31 11:35:17.534790", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:17.530818" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network forceencryption setting] *** Wednesday 31 August 2022 11:35:17 +0000 (0:00:00.300) 0:01:34.012 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.forceencryption", "1" ], "delta": "0:00:00.141894", "end": "2022-08-31 11:35:17.980942", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:17.839048" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network forceencryption setting] **** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.455) 0:01:34.467 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 5022/tcp port and enable the high-availability service in firewall] *** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.061) 0:01:34.529 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.074) 0:01:34.603 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.072) 0:01:34.676 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.071) 0:01:34.747 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.074) 0:01:34.822 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.069) 0:01:34.891 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.070) 0:01:34.962 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key files] ***** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.106) 0:01:35.069 ****** skipping: [sut] => (item=/var/opt/mssql/data/.cer) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.cer", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=/var/opt/mssql/data/.pvk) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.pvk", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.080) 0:01:35.149 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.069) 0:01:35.218 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fetch certificate and private key from the primary node to the control node] *** Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.074) 0:01:35.293 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:35:18 +0000 (0:00:00.079) 0:01:35.373 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.070) 0:01:35.443 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Get mssql-server version to see if WRITE_LEASE_VALIDITY is available] *** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.068) 0:01:35.512 ****** 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.mssql : Configure the availability group] ************ Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.072) 0:01:35.584 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.071) 0:01:35.656 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.069) 0:01:35.725 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.072) 0:01:35.798 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.072) 0:01:35.871 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.072) 0:01:35.943 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.070) 0:01:36.014 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.072) 0:01:36.086 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Distribute certificate and private key to managed nodes] *** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.070) 0:01:36.157 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.120) 0:01:36.278 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.070) 0:01:36.348 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:35:19 +0000 (0:00:00.071) 0:01:36.420 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.074) 0:01:36.494 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Join synchronous and witness servers to the availability group] *** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.072) 0:01:36.566 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.071) 0:01:36.638 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key from the control node] *** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.081) 0:01:36.720 ****** skipping: [sut] => (item=cert) => { "ansible_loop_var": "item", "changed": false, "item": "cert", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=key) => { "ansible_loop_var": "item", "changed": false, "item": "key", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Save credentials for the SQL Server login] *** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.077) 0:01:36.797 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.069) 0:01:36.867 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure a listener for the availability group] *** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.076) 0:01:36.943 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the ansible_managed header in /var/opt/mssql/mssql.conf] *** Wednesday 31 August 2022 11:35:20 +0000 (0:00:00.073) 0:01:37.016 ****** changed: [sut] => { "changed": true } MSG: Block inserted TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 11:35:21 +0000 (0:00:00.535) 0:01:37.552 ****** RUNNING HANDLER [linux-system-roles.mssql : Restart the mssql-server service] *** Wednesday 31 August 2022 11:35:21 +0000 (0:00:00.000) 0:01:37.552 ****** changed: [sut] => { "changed": true, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:34:56 UTC", "ActiveEnterTimestampMonotonic": "508746929", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:34:56 UTC", "AssertTimestampMonotonic": "508745233", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:34:56 UTC", "ConditionTimestampMonotonic": "508745231", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6544", "ExecMainStartTimestamp": "Wed 2022-08-31 11:34:56 UTC", "ExecMainStartTimestampMonotonic": "508746685", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-31 11:34:56 UTC", "InactiveExitTimestampMonotonic": "508746929", "InvocationID": "d5fb4cb51a9b4d7099ca47e14b7c1c21", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6544", "MemoryAccounting": "yes", "MemoryCurrent": "640491520", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:34:56 UTC", "StateChangeTimestampMonotonic": "508746929", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "133", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:34:56 UTC", "WatchdogTimestampMonotonic": "508746926", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 11:35:22 +0000 (0:00:01.284) 0:01:38.837 ****** TASK [Remove a private key from the playbook directory] ************************ Wednesday 31 August 2022 11:35:22 +0000 (0:00:00.086) 0:01:38.924 ****** changed: [sut -> localhost] => { "changed": true, "path": "ansible.fjl2oebi", "state": "absent" } TASK [Flush handlers] ********************************************************** Wednesday 31 August 2022 11:35:22 +0000 (0:00:00.411) 0:01:39.335 ****** TASK [Verify connectivity and settings] **************************************** Wednesday 31 August 2022 11:35:22 +0000 (0:00:00.031) 0:01:39.367 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/verify_settings.yml for sut TASK [Check if the errorlog file exists and its location] ********************** Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.098) 0:01:39.466 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if the set edition matches the existing edition] ******************* Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.058) 0:01:39.524 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the edition matches] ******************************************* Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.059) 0:01:39.584 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the IP address setting] ******************************************* Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.057) 0:01:39.641 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the TCP port setting] ********************************************* Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.058) 0:01:39.700 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Prepare MSSQL and facts for logging in] ********************************** Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.058) 0:01:39.759 ****** TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 11:35:23 +0000 (0:00:00.140) 0:01:39.899 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ActiveEnterTimestampMonotonic": "534322312", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:21 UTC", "ActiveExitTimestampMonotonic": "533549010", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:22 UTC", "AssertTimestampMonotonic": "534320202", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ConditionTimestampMonotonic": "534320200", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7722", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ExecMainStartTimestampMonotonic": "534322019", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:22 UTC] ; stop_time=[n/a] ; pid=7722 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveEnterTimestampMonotonic": "534318249", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveExitTimestampMonotonic": "534322312", "InvocationID": "1742fed78347413f8c3b9339a6e4044f", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7722", "MemoryAccounting": "yes", "MemoryCurrent": "291168256", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:22 UTC", "StateChangeTimestampMonotonic": "534322312", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "71", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:22 UTC", "WatchdogTimestampMonotonic": "534322309", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 11:35:24 +0000 (0:00:00.680) 0:01:40.579 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.005399", "end": "2022-08-31 11:35:24.494665", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:24.489266" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 11:35:24 +0000 (0:00:00.399) 0:01:40.979 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.005551", "end": "2022-08-31 11:35:24.894863", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:24.889312" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 11:35:24 +0000 (0:00:00.399) 0:01:41.379 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": "/opt/mssql-tools/bin/sqlcmd -U sa -P p@55w0rD" }, "changed": false } TASK [Wait for mssql-server to start and prepare for client connections] ******* Wednesday 31 August 2022 11:35:25 +0000 (0:00:00.131) 0:01:41.511 ****** ok: [sut] => { "changed": false, "elapsed": 3, "gid": 990, "group": "mssql", "match_groupdict": {}, "match_groups": [], "mode": "0660", "owner": "mssql", "path": "/var/opt/mssql/log/errorlog", "port": null, "search_regex": "SQL Server is now ready for client connections", "secontext": "system_u:object_r:var_t:s0", "size": 7374, "state": "file", "uid": 990 } TASK [Check if the set password matches the existing password] ***************** Wednesday 31 August 2022 11:35:28 +0000 (0:00:03.567) 0:01:45.079 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.079600", "end": "2022-08-31 11:35:28.960531", "rc": 0, "start": "2022-08-31 11:35:28.880931" } STDOUT: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Jul 22 2022 12:11:33 Copyright (C) 2019 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.7 Beta (Ootpa)) (1 rows affected) TASK [Verify if the password matched] ****************************************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.359) 0:01:45.439 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that the SQL agent is enabled] ************************************ Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.079) 0:01:45.518 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the mssql-server-fts package] ************************************* Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.060) 0:01:45.578 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the powershell package] ******************************************* Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.057) 0:01:45.636 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the mssql-server-ha package is installed] ********************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.060) 0:01:45.697 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the hadrenabled setting] ****************************************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.059) 0:01:45.756 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the value of the traceflag setting] ********************************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.055) 0:01:45.812 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is set to 3979] ************************ Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.057) 0:01:45.869 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is not set to 3979] ******************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.056) 0:01:45.926 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the alternatewritethrough setting is false] ****************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.057) 0:01:45.984 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the writethrough setting] ***************************************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.092) 0:01:46.077 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting] ********************************************** Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.058) 0:01:46.136 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlscert setting] ************************************ Wednesday 31 August 2022 11:35:29 +0000 (0:00:00.099) 0:01:46.236 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlscert' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005873", "end": "2022-08-31 11:35:30.045434", "rc": 0, "start": "2022-08-31 11:35:30.039561" } STDOUT: tlscert = /etc/pki/tls/certs/ansible.evy_wi3y TASK [Verify the tlscert setting when it is type str] ************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.290) 0:01:46.526 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting when it is type bool] ************************* Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.079) 0:01:46.606 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = ansible.evy_wi3y] ********************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.095) 0:01:46.701 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting] *********************************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.060) 0:01:46.762 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlskey setting] ************************************* Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.095) 0:01:46.857 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlskey' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005591", "end": "2022-08-31 11:35:30.664682", "rc": 0, "start": "2022-08-31 11:35:30.659091" } STDOUT: tlskey = /etc/pki/tls/private/ansible.fjl2oebi TASK [Verify the tlskey setting when it is type str] *************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.285) 0:01:47.143 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting when it is type bool] ************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.065) 0:01:47.209 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = ansible.fjl2oebi] ********************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.070) 0:01:47.279 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlsprotocols setting] ***************************************** Wednesday 31 August 2022 11:35:30 +0000 (0:00:00.061) 0:01:47.341 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlsprotocols setting] ******************************* Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.135) 0:01:47.476 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlsprotocols' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005573", "end": "2022-08-31 11:35:31.286941", "rc": 0, "start": "2022-08-31 11:35:31.281368" } STDOUT: tlsprotocols = 1.2 TASK [Verify the tlsprotocols setting when it is type str] ********************* Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.288) 0:01:47.764 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlsprotocols setting when it is type bool] ******************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.066) 0:01:47.830 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = 1.2] *********************************************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.068) 0:01:47.899 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting] ************************************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.058) 0:01:47.957 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the forceencryption setting] **************************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.103) 0:01:48.061 ****** ok: [sut] => { "changed": false, "cmd": "grep '^forceencryption' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005848", "end": "2022-08-31 11:35:31.874038", "rc": 0, "start": "2022-08-31 11:35:31.868190" } STDOUT: forceencryption = 1 TASK [Verify the forceencryption setting when it is type str] ****************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.291) 0:01:48.353 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting when it is type bool] ***************** Wednesday 31 August 2022 11:35:31 +0000 (0:00:00.064) 0:01:48.417 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that tcpport = True] ********************************************** Wednesday 31 August 2022 11:35:32 +0000 (0:00:00.088) 0:01:48.505 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Disable TLS encryption] ************************************************** Wednesday 31 August 2022 11:35:32 +0000 (0:00:00.061) 0:01:48.566 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 11:35:32 +0000 (0:00:00.226) 0:01:48.793 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml for sut TASK [linux-system-roles.mssql : Ensure ansible_facts used by role] ************ Wednesday 31 August 2022 11:35:32 +0000 (0:00:00.084) 0:01:48.877 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 11:35:32 +0000 (0:00:00.469) 0:01:49.347 ****** ok: [sut] => (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": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-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/8/prod/", "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/" }, "ansible_included_var_files": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.111) 0:01:49.459 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.069) 0:01:49.528 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Print that the variable is deprecated] ******** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.068) 0:01:49.597 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.059) 0:01:49.657 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Print that the mssql_input_sql_file variable is deprecated] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.060) 0:01:49.718 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.060) 0:01:49.778 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that the user accepts EULA variables] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.059) 0:01:49.838 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_version variable is provided correctly] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.079) 0:01:49.918 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_upgrade variable is provided correctly] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.072) 0:01:49.990 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.057) 0:01:50.048 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.055) 0:01:50.103 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once] *** Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.099) 0:01:50.202 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 11:35:33 +0000 (0:00:00.056) 0:01:50.258 ****** ok: [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.mssql : Verify if mssql_version is not smaller then the existing SQL Server version] *** Wednesday 31 August 2022 11:35:35 +0000 (0:00:01.599) 0:01:51.858 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Deploy the GPG key for Microsoft repositories] *** Wednesday 31 August 2022 11:35:35 +0000 (0:00:00.057) 0:01:51.915 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 11:35:36 +0000 (0:00:00.595) 0:01:52.511 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove the Microsoft SQL Server 2017 repository to upgrade to 2019] *** Wednesday 31 August 2022 11:35:36 +0000 (0:00:00.054) 0:01:52.565 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server 2019 repository] *** Wednesday 31 August 2022 11:35:36 +0000 (0:00:00.056) 0:01:52.621 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 11:35:36 +0000 (0:00:00.102) 0:01:52.724 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Ensure that the openldap-compat package is installed] *** Wednesday 31 August 2022 11:35:38 +0000 (0:00:01.837) 0:01:54.561 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the errorlog file exists and its location] *** Wednesday 31 August 2022 11:35:38 +0000 (0:00:00.054) 0:01:54.616 ****** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail\nerrorlog=\"$(grep '^errorlogfile = ' /var/opt/mssql/mssql.conf \\\n| sed 's/errorlogfile : //')\" || :\nif [ -s \"${errorlog}\" ]; then\n echo \"${errorlog}\"\nelif [ -s /var/opt/mssql/log/errorlog ]; then\n echo /var/opt/mssql/log/errorlog\nelse\n echo \"\"\nfi\n", "delta": "0:00:00.007595", "end": "2022-08-31 11:35:38.421422", "rc": 0, "start": "2022-08-31 11:35:38.413827" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 11:35:38 +0000 (0:00:00.284) 0:01:54.901 ****** ok: [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.mssql : Verify that the variables required for setting up MSSQL are defined] *** Wednesday 31 August 2022 11:35:40 +0000 (0:00:02.007) 0:01:56.908 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 11:35:40 +0000 (0:00:00.109) 0:01:57.018 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed] *** Wednesday 31 August 2022 11:35:40 +0000 (0:00:00.069) 0:01:57.087 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Ensure that the tuned service is started and enabled] *** Wednesday 31 August 2022 11:35:42 +0000 (0:00:01.840) 0:01:58.928 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:26:40 UTC", "ActiveEnterTimestampMonotonic": "12425322", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target systemd-sysctl.service systemd-journald.socket network.target dbus.socket dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:26:39 UTC", "AssertTimestampMonotonic": "11159928", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ConditionTimestampMonotonic": "11159926", "ConfigurationDirectoryMode": "0755", "Conflicts": "tlp.service power-profiles-daemon.service shutdown.target auto-cpufreq.service cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "744", "ExecMainStartTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ExecMainStartTimestampMonotonic": "11161662", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-31 11:26:39 UTC", "InactiveExitTimestampMonotonic": "11161759", "InvocationID": "b578f2cc48744f7ba6c8622b30f0bc24", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14143", "LimitNPROCSoft": "14143", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "744", "MemoryAccounting": "yes", "MemoryCurrent": "22171648", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.service polkit.service sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:26:40 UTC", "StateChangeTimestampMonotonic": "12425322", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "22628", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:26:40 UTC", "WatchdogTimestampMonotonic": "12425318", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 11:35:42 +0000 (0:00:00.458) 0:01:59.387 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:01.148113", "end": "2022-08-31 11:35:44.326603", "rc": 0, "start": "2022-08-31 11:35:43.178490" } STDOUT: Current active profile: virtual-guest mssql TASK [linux-system-roles.mssql : Attempt to add mssql to the list of Tuned profiles] *** Wednesday 31 August 2022 11:35:44 +0000 (0:00:01.420) 0:02:00.808 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove troublemaking include from the mssql profile] *** Wednesday 31 August 2022 11:35:44 +0000 (0:00:00.089) 0:02:00.897 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Add the fixed mssql profile to the list of Tuned profiles] *** Wednesday 31 August 2022 11:35:44 +0000 (0:00:00.054) 0:02:00.952 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server Tools repository] *** Wednesday 31 August 2022 11:35:44 +0000 (0:00:00.053) 0:02:01.006 ****** ok: [sut] => { "changed": false, "repo": "packages-microsoft-com-prod", "state": "present" } TASK [linux-system-roles.mssql : Ensure that SQL Server client tools are installed] *** Wednesday 31 August 2022 11:35:44 +0000 (0:00:00.285) 0:02:01.292 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 11:35:46 +0000 (0:00:01.814) 0:02:03.106 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/verify_password.yml for sut TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 11:35:46 +0000 (0:00:00.099) 0:02:03.206 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ActiveEnterTimestampMonotonic": "534322312", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:21 UTC", "ActiveExitTimestampMonotonic": "533549010", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:22 UTC", "AssertTimestampMonotonic": "534320202", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ConditionTimestampMonotonic": "534320200", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7722", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ExecMainStartTimestampMonotonic": "534322019", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:22 UTC] ; stop_time=[n/a] ; pid=7722 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveEnterTimestampMonotonic": "534318249", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveExitTimestampMonotonic": "534322312", "InvocationID": "1742fed78347413f8c3b9339a6e4044f", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7722", "MemoryAccounting": "yes", "MemoryCurrent": "634417152", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:22 UTC", "StateChangeTimestampMonotonic": "534322312", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "131", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:22 UTC", "WatchdogTimestampMonotonic": "534322309", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 11:35:47 +0000 (0:00:00.460) 0:02:03.666 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004040", "end": "2022-08-31 11:35:47.530831", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:47.526791" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 11:35:47 +0000 (0:00:00.362) 0:02:04.029 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004237", "end": "2022-08-31 11:35:47.840575", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:47.836338" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 11:35:47 +0000 (0:00:00.288) 0:02:04.318 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": "/opt/mssql-tools/bin/sqlcmd -U sa -P p@55w0rD" }, "changed": false } TASK [linux-system-roles.mssql : Check if the set password matches the existing password] *** Wednesday 31 August 2022 11:35:47 +0000 (0:00:00.092) 0:02:04.411 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.033160", "end": "2022-08-31 11:35:48.249626", "rc": 0, "start": "2022-08-31 11:35:48.216466" } STDOUT: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Jul 22 2022 12:11:33 Copyright (C) 2019 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.7 Beta (Ootpa)) (1 rows affected) TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.319) 0:02:04.730 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the password of the sa user] *********** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.064) 0:02:04.794 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Pre-input SQL scripts to SQL Server] ********** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.064) 0:02:04.859 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.049) 0:02:04.909 ****** ok: [sut] => { "changed": false, "cmd": "errorlog_edition=\"$(grep -oi 'Evaluation edition' \\\n/var/opt/mssql/log/errorlog)\"\nif [ -z \"${errorlog_edition}\" ]; then\n edition_matches=false\nelse\n edition_matches=true\nfi\necho \"${edition_matches}\"\n", "delta": "0:00:00.006320", "end": "2022-08-31 11:35:48.720879", "rc": 0, "start": "2022-08-31 11:35:48.714559" } STDOUT: true TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.289) 0:02:05.199 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.065) 0:02:05.264 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.064) 0:02:05.329 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 11:35:48 +0000 (0:00:00.059) 0:02:05.388 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.057) 0:02:05.446 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the TCP port setting to 1433] ******* Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.098) 0:02:05.544 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tcpport setting] ************** Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.085) 0:02:05.630 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003991", "end": "2022-08-31 11:35:49.435536", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:49.431545" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.286) 0:02:05.916 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.143086", "end": "2022-08-31 11:35:49.866068", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:49.722982" } STDOUT: Validation error on setting 'network.tcpport' Port '1433' is already in use. Please use another port TASK [linux-system-roles.mssql : Unset the network tcpport setting] ************ Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.443) 0:02:06.360 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Close the previously set SQL Server TCP port if it changed] ************** Wednesday 31 August 2022 11:35:49 +0000 (0:00:00.055) 0:02:06.415 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.055) 0:02:06.471 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-fts package] ********** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.061) 0:02:06.532 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.061) 0:02:06.594 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.059) 0:02:06.654 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.059) 0:02:06.713 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the 3979 trace flag is enabled] ****** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.059) 0:02:06.773 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.059) 0:02:06.833 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.058) 0:02:06.891 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.102) 0:02:06.993 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.062) 0:02:07.056 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Copy certificate and private_key files to the host] *** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.059) 0:02:07.116 ****** skipping: [sut] => (item=/tmp/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": false, "item": "/tmp/ansible.evy_wi3y", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": false, "item": "ansible.fjl2oebi", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.077) 0:02:07.193 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlscert setting] ************** Wednesday 31 August 2022 11:35:50 +0000 (0:00:00.101) 0:02:07.295 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlscert = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004152", "end": "2022-08-31 11:35:51.107033", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:51.102881" } STDOUT: tlscert = /etc/pki/tls/certs/ansible.evy_wi3y TASK [linux-system-roles.mssql : Configure the network tlscert setting] ******** Wednesday 31 August 2022 11:35:51 +0000 (0:00:00.291) 0:02:07.587 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the network tlscert setting] ************ Wednesday 31 August 2022 11:35:51 +0000 (0:00:00.073) 0:02:07.660 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "unset", "network", "tlscert" ], "delta": "0:00:00.140105", "end": "2022-08-31 11:35:51.611694", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:51.471589" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 11:35:51 +0000 (0:00:00.435) 0:02:08.096 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlskey setting] *************** Wednesday 31 August 2022 11:35:51 +0000 (0:00:00.099) 0:02:08.196 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlskey = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004118", "end": "2022-08-31 11:35:52.008041", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:52.003923" } STDOUT: tlskey = /etc/pki/tls/private/ansible.fjl2oebi TASK [linux-system-roles.mssql : Configure the network tlskey setting] ********* Wednesday 31 August 2022 11:35:52 +0000 (0:00:00.292) 0:02:08.488 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the network tlskey setting] ************* Wednesday 31 August 2022 11:35:52 +0000 (0:00:00.108) 0:02:08.597 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "unset", "network", "tlskey" ], "delta": "0:00:00.141304", "end": "2022-08-31 11:35:52.551842", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:52.410538" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 11:35:52 +0000 (0:00:00.438) 0:02:09.036 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlsprotocols setting] ********* Wednesday 31 August 2022 11:35:52 +0000 (0:00:00.098) 0:02:09.135 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlsprotocols = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003926", "end": "2022-08-31 11:35:52.946907", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:52.942981" } STDOUT: tlsprotocols = 1.2 TASK [linux-system-roles.mssql : Configure the network tlsprotocols setting] *** Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.291) 0:02:09.426 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the network tlsprotocols setting] ******* Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.070) 0:02:09.497 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "unset", "network", "tlsprotocols" ], "delta": "0:00:00.142733", "end": "2022-08-31 11:35:53.450557", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:53.307824" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.439) 0:02:09.937 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network forceencryption setting] ****** Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.101) 0:02:10.038 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^forceencryption = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004099", "end": "2022-08-31 11:35:53.852251", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:53.848152" } STDOUT: forceencryption = 1 TASK [linux-system-roles.mssql : Configure the network forceencryption setting] *** Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.296) 0:02:10.335 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the network forceencryption setting] **** Wednesday 31 August 2022 11:35:53 +0000 (0:00:00.068) 0:02:10.404 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "unset", "network", "forceencryption" ], "delta": "0:00:00.140588", "end": "2022-08-31 11:35:54.408312", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:35:54.267724" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [Open the 5022/tcp port and enable the high-availability service in firewall] *** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.488) 0:02:10.892 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.059) 0:02:10.952 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.057) 0:02:11.009 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.055) 0:02:11.065 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.054) 0:02:11.119 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.060) 0:02:11.179 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.055) 0:02:11.235 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key files] ***** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.054) 0:02:11.290 ****** skipping: [sut] => (item=/var/opt/mssql/data/.cer) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.cer", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=/var/opt/mssql/data/.pvk) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.pvk", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.062) 0:02:11.352 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 11:35:54 +0000 (0:00:00.057) 0:02:11.410 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fetch certificate and private key from the primary node to the control node] *** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.054) 0:02:11.465 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.067) 0:02:11.533 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.056) 0:02:11.589 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Get mssql-server version to see if WRITE_LEASE_VALIDITY is available] *** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.057) 0:02:11.647 ****** 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.mssql : Configure the availability group] ************ Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.098) 0:02:11.745 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.058) 0:02:11.804 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.053) 0:02:11.858 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.056) 0:02:11.914 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.057) 0:02:11.972 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.056) 0:02:12.028 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.053) 0:02:12.082 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.055) 0:02:12.138 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Distribute certificate and private key to managed nodes] *** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.058) 0:02:12.196 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.069) 0:02:12.266 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.055) 0:02:12.322 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:35:55 +0000 (0:00:00.053) 0:02:12.375 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.054) 0:02:12.430 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Join synchronous and witness servers to the availability group] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.055) 0:02:12.486 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.055) 0:02:12.541 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key from the control node] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.103) 0:02:12.645 ****** skipping: [sut] => (item=cert) => { "ansible_loop_var": "item", "changed": false, "item": "cert", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=key) => { "ansible_loop_var": "item", "changed": false, "item": "key", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Save credentials for the SQL Server login] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.065) 0:02:12.711 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.056) 0:02:12.767 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure a listener for the availability group] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.057) 0:02:12.825 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the ansible_managed header in /var/opt/mssql/mssql.conf] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.056) 0:02:12.882 ****** changed: [sut] => { "changed": true } MSG: Block inserted TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.353) 0:02:13.235 ****** RUNNING HANDLER [linux-system-roles.mssql : Restart the mssql-server service] *** Wednesday 31 August 2022 11:35:56 +0000 (0:00:00.000) 0:02:13.235 ****** changed: [sut] => { "changed": true, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ActiveEnterTimestampMonotonic": "534322312", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:21 UTC", "ActiveExitTimestampMonotonic": "533549010", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:22 UTC", "AssertTimestampMonotonic": "534320202", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ConditionTimestampMonotonic": "534320200", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7722", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:22 UTC", "ExecMainStartTimestampMonotonic": "534322019", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:22 UTC] ; stop_time=[n/a] ; pid=7722 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveEnterTimestampMonotonic": "534318249", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:22 UTC", "InactiveExitTimestampMonotonic": "534322312", "InvocationID": "1742fed78347413f8c3b9339a6e4044f", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7722", "MemoryAccounting": "yes", "MemoryCurrent": "635977728", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:22 UTC", "StateChangeTimestampMonotonic": "534322312", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "135", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:22 UTC", "WatchdogTimestampMonotonic": "534322309", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 11:35:57 +0000 (0:00:01.147) 0:02:14.383 ****** TASK [Flush handlers] ********************************************************** Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.081) 0:02:14.465 ****** TASK [Verify connectivity and settings] **************************************** Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.031) 0:02:14.497 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/verify_settings.yml for sut TASK [Check if the errorlog file exists and its location] ********************** Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.176) 0:02:14.674 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if the set edition matches the existing edition] ******************* Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.059) 0:02:14.733 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the edition matches] ******************************************* Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.056) 0:02:14.790 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the IP address setting] ******************************************* Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.057) 0:02:14.848 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the TCP port setting] ********************************************* Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.057) 0:02:14.906 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Prepare MSSQL and facts for logging in] ********************************** Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.058) 0:02:14.965 ****** TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 11:35:58 +0000 (0:00:00.093) 0:02:15.058 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveEnterTimestampMonotonic": "569859525", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveExitTimestampMonotonic": "569234840", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:57 UTC", "AssertTimestampMonotonic": "569857543", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ConditionTimestampMonotonic": "569857541", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8674", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ExecMainStartTimestampMonotonic": "569859458", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:57 UTC] ; stop_time=[n/a] ; pid=8674 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveEnterTimestampMonotonic": "569855911", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveExitTimestampMonotonic": "569859525", "InvocationID": "19947bcc3d2d411d9d82c47b75ecdf25", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8674", "MemoryAccounting": "yes", "MemoryCurrent": "141459456", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:57 UTC", "StateChangeTimestampMonotonic": "569859525", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "45", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:57 UTC", "WatchdogTimestampMonotonic": "569859522", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 11:35:59 +0000 (0:00:00.678) 0:02:15.736 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.005817", "end": "2022-08-31 11:35:59.655320", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:35:59.649503" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 11:35:59 +0000 (0:00:00.404) 0:02:16.141 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.005510", "end": "2022-08-31 11:36:00.118911", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:00.113401" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 11:36:00 +0000 (0:00:00.484) 0:02:16.626 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": "/opt/mssql-tools/bin/sqlcmd -U sa -P p@55w0rD" }, "changed": false } TASK [Wait for mssql-server to start and prepare for client connections] ******* Wednesday 31 August 2022 11:36:00 +0000 (0:00:00.123) 0:02:16.749 ****** ok: [sut] => { "changed": false, "elapsed": 3, "gid": 990, "group": "mssql", "match_groupdict": {}, "match_groups": [], "mode": "0660", "owner": "mssql", "path": "/var/opt/mssql/log/errorlog", "port": null, "search_regex": "SQL Server is now ready for client connections", "secontext": "system_u:object_r:var_t:s0", "size": 6809, "state": "file", "uid": 990 } TASK [Check if the set password matches the existing password] ***************** Wednesday 31 August 2022 11:36:03 +0000 (0:00:03.460) 0:02:20.210 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.033290", "end": "2022-08-31 11:36:04.056811", "rc": 0, "start": "2022-08-31 11:36:04.023521" } STDOUT: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Jul 22 2022 12:11:33 Copyright (C) 2019 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.7 Beta (Ootpa)) (1 rows affected) TASK [Verify if the password matched] ****************************************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.327) 0:02:20.537 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that the SQL agent is enabled] ************************************ Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.077) 0:02:20.615 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the mssql-server-fts package] ************************************* Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.092) 0:02:20.707 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the powershell package] ******************************************* Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.062) 0:02:20.770 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the mssql-server-ha package is installed] ********************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.060) 0:02:20.830 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the hadrenabled setting] ****************************************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.058) 0:02:20.889 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the value of the traceflag setting] ********************************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.058) 0:02:20.947 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is set to 3979] ************************ Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.058) 0:02:21.006 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is not set to 3979] ******************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.057) 0:02:21.064 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the alternatewritethrough setting is false] ****************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.058) 0:02:21.122 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the writethrough setting] ***************************************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.058) 0:02:21.181 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting] ********************************************** Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.060) 0:02:21.241 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlscert setting] ************************************ Wednesday 31 August 2022 11:36:04 +0000 (0:00:00.095) 0:02:21.337 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlscert' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005804", "end": "2022-08-31 11:36:05.150644", "rc": 0, "start": "2022-08-31 11:36:05.144840" } TASK [Verify the tlscert setting when it is type str] ************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.295) 0:02:21.632 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting when it is type bool] ************************* Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.067) 0:02:21.700 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport =] *************************************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.112) 0:02:21.813 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting] *********************************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.063) 0:02:21.877 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlskey setting] ************************************* Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.102) 0:02:21.980 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlskey' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005741", "end": "2022-08-31 11:36:05.793189", "rc": 0, "start": "2022-08-31 11:36:05.787448" } TASK [Verify the tlskey setting when it is type str] *************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.296) 0:02:22.276 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting when it is type bool] ************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.068) 0:02:22.344 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport =] *************************************************** Wednesday 31 August 2022 11:36:05 +0000 (0:00:00.070) 0:02:22.415 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlsprotocols setting] ***************************************** Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.063) 0:02:22.478 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlsprotocols setting] ******************************* Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.100) 0:02:22.578 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlsprotocols' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005556", "end": "2022-08-31 11:36:06.389357", "rc": 0, "start": "2022-08-31 11:36:06.383801" } TASK [Verify the tlsprotocols setting when it is type str] ********************* Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.290) 0:02:22.869 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify the tlsprotocols setting when it is type bool] ******************** Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.087) 0:02:22.956 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport =] *************************************************** Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.067) 0:02:23.024 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting] ************************************** Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.110) 0:02:23.134 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the forceencryption setting] **************************** Wednesday 31 August 2022 11:36:06 +0000 (0:00:00.103) 0:02:23.238 ****** ok: [sut] => { "changed": false, "cmd": "grep '^forceencryption' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005824", "end": "2022-08-31 11:36:07.054542", "rc": 0, "start": "2022-08-31 11:36:07.048718" } TASK [Verify the forceencryption setting when it is type str] ****************** Wednesday 31 August 2022 11:36:07 +0000 (0:00:00.296) 0:02:23.534 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting when it is type bool] ***************** Wednesday 31 August 2022 11:36:07 +0000 (0:00:00.067) 0:02:23.602 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that tcpport = False] ********************************************* Wednesday 31 August 2022 11:36:07 +0000 (0:00:00.093) 0:02:23.695 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove certificates from hosts] ****************************************** Wednesday 31 August 2022 11:36:07 +0000 (0:00:00.062) 0:02:23.758 ****** changed: [sut] => (item=/etc/pki/tls/certs/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": true, "item": "/etc/pki/tls/certs/ansible.evy_wi3y", "path": "/etc/pki/tls/certs/ansible.evy_wi3y", "state": "absent" } changed: [sut] => (item=/etc/pki/tls/private/ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": true, "item": "/etc/pki/tls/private/ansible.fjl2oebi", "path": "/etc/pki/tls/private/ansible.fjl2oebi", "state": "absent" } TASK [Copy certificates to hosts] ********************************************** Wednesday 31 August 2022 11:36:07 +0000 (0:00:00.517) 0:02:24.276 ****** ok: [sut] => (item=/tmp/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": false, "checksum": "b5f834bfbfdb35f8e5f2963bb0a34fe69b954b86", "dest": "/tmp/ansible.evy_wi3y", "gid": 0, "group": "root", "item": "/tmp/ansible.evy_wi3y", "mode": "0600", "owner": "root", "path": "/tmp/ansible.evy_wi3y", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 1119, "state": "file", "uid": 0 } ok: [sut] => (item=/tmp/ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": false, "checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "dest": "/tmp/ansible.fjl2oebi", "gid": 0, "group": "root", "item": "/tmp/ansible.fjl2oebi", "mode": "0600", "owner": "root", "path": "/tmp/ansible.fjl2oebi", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 1708, "state": "file", "uid": 0 } TASK [Test with certs on managed nodes] **************************************** Wednesday 31 August 2022 11:36:09 +0000 (0:00:01.189) 0:02:25.465 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 11:36:09 +0000 (0:00:00.301) 0:02:25.767 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml for sut TASK [linux-system-roles.mssql : Ensure ansible_facts used by role] ************ Wednesday 31 August 2022 11:36:09 +0000 (0:00:00.085) 0:02:25.852 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 11:36:09 +0000 (0:00:00.480) 0:02:26.332 ****** ok: [sut] => (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": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-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/8/prod/", "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/" }, "ansible_included_var_files": [ "/WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.112) 0:02:26.445 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.068) 0:02:26.514 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Print that the variable is deprecated] ******** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.067) 0:02:26.581 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.059) 0:02:26.641 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Print that the mssql_input_sql_file variable is deprecated] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.060) 0:02:26.702 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.059) 0:02:26.761 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that the user accepts EULA variables] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.104) 0:02:26.865 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_version variable is provided correctly] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.076) 0:02:26.942 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify if the mssql_upgrade variable is provided correctly] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.077) 0:02:27.019 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.056) 0:02:27.075 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.055) 0:02:27.131 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once] *** Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.054) 0:02:27.186 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 11:36:10 +0000 (0:00:00.059) 0:02:27.245 ****** ok: [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.mssql : Verify if mssql_version is not smaller then the existing SQL Server version] *** Wednesday 31 August 2022 11:36:12 +0000 (0:00:01.595) 0:02:28.841 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Deploy the GPG key for Microsoft repositories] *** Wednesday 31 August 2022 11:36:12 +0000 (0:00:00.058) 0:02:28.899 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 11:36:13 +0000 (0:00:00.657) 0:02:29.557 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove the Microsoft SQL Server 2017 repository to upgrade to 2019] *** Wednesday 31 August 2022 11:36:13 +0000 (0:00:00.059) 0:02:29.616 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server 2019 repository] *** Wednesday 31 August 2022 11:36:13 +0000 (0:00:00.062) 0:02:29.678 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 11:36:13 +0000 (0:00:00.071) 0:02:29.750 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Ensure that the openldap-compat package is installed] *** Wednesday 31 August 2022 11:36:15 +0000 (0:00:01.822) 0:02:31.572 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the errorlog file exists and its location] *** Wednesday 31 August 2022 11:36:15 +0000 (0:00:00.056) 0:02:31.629 ****** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail\nerrorlog=\"$(grep '^errorlogfile = ' /var/opt/mssql/mssql.conf \\\n| sed 's/errorlogfile : //')\" || :\nif [ -s \"${errorlog}\" ]; then\n echo \"${errorlog}\"\nelif [ -s /var/opt/mssql/log/errorlog ]; then\n echo /var/opt/mssql/log/errorlog\nelse\n echo \"\"\nfi\n", "delta": "0:00:00.007316", "end": "2022-08-31 11:36:15.431798", "rc": 0, "start": "2022-08-31 11:36:15.424482" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 11:36:15 +0000 (0:00:00.282) 0:02:31.911 ****** ok: [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.mssql : Verify that the variables required for setting up MSSQL are defined] *** Wednesday 31 August 2022 11:36:17 +0000 (0:00:02.044) 0:02:33.955 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 11:36:17 +0000 (0:00:00.069) 0:02:34.024 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed] *** Wednesday 31 August 2022 11:36:17 +0000 (0:00:00.068) 0:02:34.093 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Ensure that the tuned service is started and enabled] *** Wednesday 31 August 2022 11:36:19 +0000 (0:00:01.817) 0:02:35.910 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:26:40 UTC", "ActiveEnterTimestampMonotonic": "12425322", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target systemd-sysctl.service systemd-journald.socket network.target dbus.socket dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:26:39 UTC", "AssertTimestampMonotonic": "11159928", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ConditionTimestampMonotonic": "11159926", "ConfigurationDirectoryMode": "0755", "Conflicts": "tlp.service power-profiles-daemon.service shutdown.target auto-cpufreq.service cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "744", "ExecMainStartTimestamp": "Wed 2022-08-31 11:26:39 UTC", "ExecMainStartTimestampMonotonic": "11161662", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-31 11:26:39 UTC", "InactiveExitTimestampMonotonic": "11161759", "InvocationID": "b578f2cc48744f7ba6c8622b30f0bc24", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14143", "LimitNPROCSoft": "14143", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "744", "MemoryAccounting": "yes", "MemoryCurrent": "22208512", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.service polkit.service sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:26:40 UTC", "StateChangeTimestampMonotonic": "12425322", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "22628", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:26:40 UTC", "WatchdogTimestampMonotonic": "12425318", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 11:36:19 +0000 (0:00:00.493) 0:02:36.404 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.145413", "end": "2022-08-31 11:36:20.344298", "rc": 0, "start": "2022-08-31 11:36:20.198885" } STDOUT: Current active profile: virtual-guest mssql TASK [linux-system-roles.mssql : Attempt to add mssql to the list of Tuned profiles] *** Wednesday 31 August 2022 11:36:20 +0000 (0:00:00.421) 0:02:36.825 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove troublemaking include from the mssql profile] *** Wednesday 31 August 2022 11:36:20 +0000 (0:00:00.054) 0:02:36.880 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Add the fixed mssql profile to the list of Tuned profiles] *** Wednesday 31 August 2022 11:36:20 +0000 (0:00:00.055) 0:02:36.936 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the Microsoft SQL Server Tools repository] *** Wednesday 31 August 2022 11:36:20 +0000 (0:00:00.056) 0:02:36.993 ****** ok: [sut] => { "changed": false, "repo": "packages-microsoft-com-prod", "state": "present" } TASK [linux-system-roles.mssql : Ensure that SQL Server client tools are installed] *** Wednesday 31 August 2022 11:36:20 +0000 (0:00:00.286) 0:02:37.279 ****** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 11:36:22 +0000 (0:00:01.821) 0:02:39.101 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/verify_password.yml for sut TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 11:36:22 +0000 (0:00:00.136) 0:02:39.237 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveEnterTimestampMonotonic": "569859525", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveExitTimestampMonotonic": "569234840", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:57 UTC", "AssertTimestampMonotonic": "569857543", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ConditionTimestampMonotonic": "569857541", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8674", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ExecMainStartTimestampMonotonic": "569859458", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:57 UTC] ; stop_time=[n/a] ; pid=8674 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveEnterTimestampMonotonic": "569855911", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveExitTimestampMonotonic": "569859525", "InvocationID": "19947bcc3d2d411d9d82c47b75ecdf25", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8674", "MemoryAccounting": "yes", "MemoryCurrent": "631336960", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:57 UTC", "StateChangeTimestampMonotonic": "569859525", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "132", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:57 UTC", "WatchdogTimestampMonotonic": "569859522", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 11:36:23 +0000 (0:00:00.461) 0:02:39.699 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003988", "end": "2022-08-31 11:36:23.509052", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:23.505064" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 11:36:23 +0000 (0:00:00.289) 0:02:39.988 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004073", "end": "2022-08-31 11:36:23.795100", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:23.791027" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 11:36:23 +0000 (0:00:00.286) 0:02:40.274 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": "/opt/mssql-tools/bin/sqlcmd -U sa -P p@55w0rD" }, "changed": false } TASK [linux-system-roles.mssql : Check if the set password matches the existing password] *** Wednesday 31 August 2022 11:36:23 +0000 (0:00:00.094) 0:02:40.369 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.032347", "end": "2022-08-31 11:36:24.208949", "rc": 0, "start": "2022-08-31 11:36:24.176602" } STDOUT: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Jul 22 2022 12:11:33 Copyright (C) 2019 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.7 Beta (Ootpa)) (1 rows affected) TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.320) 0:02:40.690 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the password of the sa user] *********** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.064) 0:02:40.755 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Pre-input SQL scripts to SQL Server] ********** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.064) 0:02:40.820 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.050) 0:02:40.871 ****** ok: [sut] => { "changed": false, "cmd": "errorlog_edition=\"$(grep -oi 'Evaluation edition' \\\n/var/opt/mssql/log/errorlog)\"\nif [ -z \"${errorlog_edition}\" ]; then\n edition_matches=false\nelse\n edition_matches=true\nfi\necho \"${edition_matches}\"\n", "delta": "0:00:00.006395", "end": "2022-08-31 11:36:24.684602", "rc": 0, "start": "2022-08-31 11:36:24.678207" } STDOUT: true TASK [linux-system-roles.mssql : Ensure that the mssql-server service is stopped] *** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.291) 0:02:41.162 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.065) 0:02:41.228 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.112) 0:02:41.340 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 11:36:24 +0000 (0:00:00.061) 0:02:41.402 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.058) 0:02:41.460 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the TCP port setting to 1433] ******* Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.058) 0:02:41.519 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tcpport setting] ************** Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.086) 0:02:41.606 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003849", "end": "2022-08-31 11:36:25.412608", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:25.408759" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.286) 0:02:41.892 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.144837", "end": "2022-08-31 11:36:25.847754", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:36:25.702917" } STDOUT: Validation error on setting 'network.tcpport' Port '1433' is already in use. Please use another port TASK [linux-system-roles.mssql : Unset the network tcpport setting] ************ Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.450) 0:02:42.342 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Close the previously set SQL Server TCP port if it changed] ************** Wednesday 31 August 2022 11:36:25 +0000 (0:00:00.056) 0:02:42.399 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.057) 0:02:42.456 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-fts package] ********** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.060) 0:02:42.517 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.062) 0:02:42.580 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.062) 0:02:42.642 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.061) 0:02:42.703 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the 3979 trace flag is enabled] ****** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.107) 0:02:42.811 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.061) 0:02:42.873 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.062) 0:02:42.935 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.062) 0:02:42.998 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.068) 0:02:43.067 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Copy certificate and private_key files to the host] *** Wednesday 31 August 2022 11:36:26 +0000 (0:00:00.063) 0:02:43.130 ****** changed: [sut] => (item=/tmp/ansible.evy_wi3y) => { "ansible_loop_var": "item", "changed": true, "checksum": "b5f834bfbfdb35f8e5f2963bb0a34fe69b954b86", "dest": "/etc/pki/tls/certs/ansible.evy_wi3y", "gid": 990, "group": "mssql", "item": "/tmp/ansible.evy_wi3y", "md5sum": "42c72e60996fac598ef5e80ed82278c1", "mode": "0600", "owner": "mssql", "secontext": "system_u:object_r:cert_t:s0", "size": 1119, "src": "/tmp/ansible.evy_wi3y", "state": "file", "uid": 990 } changed: [sut] => (item=/tmp/ansible.fjl2oebi) => { "ansible_loop_var": "item", "changed": true, "checksum": "e4c2e89138561e1c08c89f6f2715a1013972b3ea", "dest": "/etc/pki/tls/private/ansible.fjl2oebi", "gid": 990, "group": "mssql", "item": "/tmp/ansible.fjl2oebi", "md5sum": "4ddb29fd7455cbb9316df9d87dfff505", "mode": "0600", "owner": "mssql", "secontext": "system_u:object_r:cert_t:s0", "size": 1708, "src": "/tmp/ansible.fjl2oebi", "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 11:36:27 +0000 (0:00:00.822) 0:02:43.953 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlscert setting] ************** Wednesday 31 August 2022 11:36:27 +0000 (0:00:00.100) 0:02:44.053 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlscert = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003950", "end": "2022-08-31 11:36:27.865228", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:27.861278" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlscert setting] ******** Wednesday 31 August 2022 11:36:27 +0000 (0:00:00.292) 0:02:44.346 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlscert", "/etc/pki/tls/certs/ansible.evy_wi3y" ], "delta": "0:00:00.140926", "end": "2022-08-31 11:36:28.307677", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:36:28.166751" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlscert setting] ************ Wednesday 31 August 2022 11:36:28 +0000 (0:00:00.449) 0:02:44.795 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 11:36:28 +0000 (0:00:00.111) 0:02:44.907 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlskey setting] *************** Wednesday 31 August 2022 11:36:28 +0000 (0:00:00.105) 0:02:45.012 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlskey = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003992", "end": "2022-08-31 11:36:28.825546", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:28.821554" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlskey setting] ********* Wednesday 31 August 2022 11:36:28 +0000 (0:00:00.292) 0:02:45.305 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlskey", "/etc/pki/tls/private/ansible.fjl2oebi" ], "delta": "0:00:00.142445", "end": "2022-08-31 11:36:29.268275", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:36:29.125830" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlskey setting] ************* Wednesday 31 August 2022 11:36:29 +0000 (0:00:00.450) 0:02:45.756 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 11:36:29 +0000 (0:00:00.068) 0:02:45.825 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network tlsprotocols setting] ********* Wednesday 31 August 2022 11:36:29 +0000 (0:00:00.101) 0:02:45.926 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tlsprotocols = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004077", "end": "2022-08-31 11:36:29.737496", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:29.733419" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tlsprotocols setting] *** Wednesday 31 August 2022 11:36:29 +0000 (0:00:00.292) 0:02:46.218 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tlsprotocols", "1.2" ], "delta": "0:00:00.140970", "end": "2022-08-31 11:36:30.174027", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:36:30.033057" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network tlsprotocols setting] ******* Wednesday 31 August 2022 11:36:30 +0000 (0:00:00.443) 0:02:46.662 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 11:36:30 +0000 (0:00:00.062) 0:02:46.724 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/mssql_conf_setting.yml for sut TASK [linux-system-roles.mssql : Get the network forceencryption setting] ****** Wednesday 31 August 2022 11:36:30 +0000 (0:00:00.148) 0:02:46.873 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^forceencryption = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003989", "end": "2022-08-31 11:36:30.686835", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:30.682846" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network forceencryption setting] *** Wednesday 31 August 2022 11:36:30 +0000 (0:00:00.293) 0:02:47.167 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.forceencryption", "1" ], "delta": "0:00:00.139982", "end": "2022-08-31 11:36:31.120532", "failed_when_result": false, "rc": 0, "start": "2022-08-31 11:36:30.980550" } STDOUT: SQL Server needs to be restarted in order to apply this setting. Please run 'systemctl restart mssql-server.service'. TASK [linux-system-roles.mssql : Unset the network forceencryption setting] **** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.441) 0:02:47.609 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 5022/tcp port and enable the high-availability service in firewall] *** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.064) 0:02:47.673 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.058) 0:02:47.732 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.059) 0:02:47.791 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.058) 0:02:47.849 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.057) 0:02:47.906 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.056) 0:02:47.963 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.055) 0:02:48.019 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key files] ***** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.058) 0:02:48.077 ****** skipping: [sut] => (item=/var/opt/mssql/data/.cer) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.cer", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=/var/opt/mssql/data/.pvk) => { "ansible_loop_var": "item", "changed": false, "item": "/var/opt/mssql/data/.pvk", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.067) 0:02:48.144 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.057) 0:02:48.202 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fetch certificate and private key from the primary node to the control node] *** Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.130) 0:02:48.333 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:36:31 +0000 (0:00:00.067) 0:02:48.401 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.059) 0:02:48.461 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Get mssql-server version to see if WRITE_LEASE_VALIDITY is available] *** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:48.518 ****** 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.mssql : Configure the availability group] ************ Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.056) 0:02:48.574 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:48.632 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:48.689 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server-ha package] *********** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:48.747 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.056) 0:02:48.804 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restart the mssql-server service if hadrenabled task was changed] *** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.056) 0:02:48.860 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:48.917 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.056) 0:02:48.973 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Distribute certificate and private key to managed nodes] *** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.056) 0:02:49.030 ****** skipping: [sut] => (item={'key': 'cert', 'value': '/var/opt/mssql/data/.cer'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "cert", "value": "/var/opt/mssql/data/.cer" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'key': 'key', 'value': '/var/opt/mssql/data/.pvk'}) => { "ansible_loop_var": "item", "changed": false, "item": { "key": "key", "value": "/var/opt/mssql/data/.pvk" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.068) 0:02:49.098 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.106) 0:02:49.205 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:49.262 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.063) 0:02:49.326 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Join synchronous and witness servers to the availability group] *** Wednesday 31 August 2022 11:36:32 +0000 (0:00:00.057) 0:02:49.384 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.058) 0:02:49.442 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate and private key from the control node] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.065) 0:02:49.507 ****** skipping: [sut] => (item=cert) => { "ansible_loop_var": "item", "changed": false, "item": "cert", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=key) => { "ansible_loop_var": "item", "changed": false, "item": "key", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Save credentials for the SQL Server login] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.068) 0:02:49.576 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.057) 0:02:49.633 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure a listener for the availability group] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.060) 0:02:49.694 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the ansible_managed header in /var/opt/mssql/mssql.conf] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.057) 0:02:49.752 ****** changed: [sut] => { "changed": true } MSG: Block inserted TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.355) 0:02:50.107 ****** RUNNING HANDLER [linux-system-roles.mssql : Restart the mssql-server service] *** Wednesday 31 August 2022 11:36:33 +0000 (0:00:00.000) 0:02:50.107 ****** changed: [sut] => { "changed": true, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveEnterTimestampMonotonic": "569859525", "ActiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ActiveExitTimestampMonotonic": "569234840", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:35:57 UTC", "AssertTimestampMonotonic": "569857543", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ConditionTimestampMonotonic": "569857541", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8674", "ExecMainStartTimestamp": "Wed 2022-08-31 11:35:57 UTC", "ExecMainStartTimestampMonotonic": "569859458", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:35:57 UTC] ; stop_time=[n/a] ; pid=8674 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveEnterTimestampMonotonic": "569855911", "InactiveExitTimestamp": "Wed 2022-08-31 11:35:57 UTC", "InactiveExitTimestampMonotonic": "569859525", "InvocationID": "19947bcc3d2d411d9d82c47b75ecdf25", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8674", "MemoryAccounting": "yes", "MemoryCurrent": "632901632", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:35:57 UTC", "StateChangeTimestampMonotonic": "569859525", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "134", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:35:57 UTC", "WatchdogTimestampMonotonic": "569859522", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.820) 0:02:50.927 ****** TASK [Flush handlers] ********************************************************** Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.085) 0:02:51.013 ****** TASK [Verify connectivity and settings] **************************************** Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.033) 0:02:51.047 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/verify_settings.yml for sut TASK [Check if the errorlog file exists and its location] ********************** Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.179) 0:02:51.227 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if the set edition matches the existing edition] ******************* Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.061) 0:02:51.288 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the edition matches] ******************************************* Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.058) 0:02:51.347 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the IP address setting] ******************************************* Wednesday 31 August 2022 11:36:34 +0000 (0:00:00.056) 0:02:51.404 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the TCP port setting] ********************************************* Wednesday 31 August 2022 11:36:35 +0000 (0:00:00.058) 0:02:51.462 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Prepare MSSQL and facts for logging in] ********************************** Wednesday 31 August 2022 11:36:35 +0000 (0:00:00.058) 0:02:51.521 ****** TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 11:36:35 +0000 (0:00:00.096) 0:02:51.618 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 11:36:34 UTC", "ActiveEnterTimestampMonotonic": "606356656", "ActiveExitTimestamp": "Wed 2022-08-31 11:36:34 UTC", "ActiveExitTimestampMonotonic": "606102312", "ActiveState": "active", "After": "systemd-journald.socket -.mount basic.target auditd.service system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 11:36:34 UTC", "AssertTimestampMonotonic": "606354686", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-31 11:36:34 UTC", "ConditionTimestampMonotonic": "606354685", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/mssql-server.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Microsoft SQL Server Database Engine", "DevicePolicy": "auto", "Documentation": "https://docs.microsoft.com/en-us/sql/linux", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9967", "ExecMainStartTimestamp": "Wed 2022-08-31 11:36:34 UTC", "ExecMainStartTimestampMonotonic": "606356569", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 11:36:34 UTC] ; stop_time=[n/a] ; pid=9967 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mssql-server.service", "FreezerState": "running", "GID": "990", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "mssql-server.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-08-31 11:36:34 UTC", "InactiveEnterTimestampMonotonic": "606353134", "InactiveExitTimestamp": "Wed 2022-08-31 11:36:34 UTC", "InactiveExitTimestampMonotonic": "606356656", "InvocationID": "57d9b5c3de084a29bec7f628398b9c18", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "infinity", "LimitNOFILESoft": "infinity", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9967", "MemoryAccounting": "yes", "MemoryCurrent": "159715328", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "mssql-server.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target -.mount", "RequiresMountsFor": "/var/opt/mssql", "Restart": "on-failure", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "3", "StartLimitIntervalUSec": "2min", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-08-31 11:36:34 UTC", "StateChangeTimestampMonotonic": "606356656", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "49", "TasksMax": "infinity", "TimeoutStartUSec": "30min", "TimeoutStopUSec": "30min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "990", "UMask": "0007", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mssql", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-08-31 11:36:34 UTC", "WatchdogTimestampMonotonic": "606356653", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 11:36:35 +0000 (0:00:00.716) 0:02:52.335 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.006267", "end": "2022-08-31 11:36:36.263485", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:36.257218" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 11:36:36 +0000 (0:00:00.418) 0:02:52.753 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.006780", "end": "2022-08-31 11:36:36.668761", "failed_when_result": false, "rc": 1, "start": "2022-08-31 11:36:36.661981" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 11:36:36 +0000 (0:00:00.404) 0:02:53.157 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": "/opt/mssql-tools/bin/sqlcmd -U sa -P p@55w0rD" }, "changed": false } TASK [Wait for mssql-server to start and prepare for client connections] ******* Wednesday 31 August 2022 11:36:36 +0000 (0:00:00.127) 0:02:53.285 ****** ok: [sut] => { "changed": false, "elapsed": 3, "gid": 990, "group": "mssql", "match_groupdict": {}, "match_groups": [], "mode": "0660", "owner": "mssql", "path": "/var/opt/mssql/log/errorlog", "port": null, "search_regex": "SQL Server is now ready for client connections", "secontext": "system_u:object_r:var_t:s0", "size": 6903, "state": "file", "uid": 990 } TASK [Check if the set password matches the existing password] ***************** Wednesday 31 August 2022 11:36:40 +0000 (0:00:03.450) 0:02:56.736 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.033029", "end": "2022-08-31 11:36:40.669292", "rc": 0, "start": "2022-08-31 11:36:40.636263" } STDOUT: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Microsoft SQL Server 2019 (RTM-CU17) (KB5016394) - 15.0.4249.2 (X64) Jul 22 2022 12:11:33 Copyright (C) 2019 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.7 Beta (Ootpa)) (1 rows affected) TASK [Verify if the password matched] ****************************************** Wednesday 31 August 2022 11:36:40 +0000 (0:00:00.412) 0:02:57.149 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that the SQL agent is enabled] ************************************ Wednesday 31 August 2022 11:36:40 +0000 (0:00:00.079) 0:02:57.228 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the mssql-server-fts package] ************************************* Wednesday 31 August 2022 11:36:40 +0000 (0:00:00.062) 0:02:57.291 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the powershell package] ******************************************* Wednesday 31 August 2022 11:36:40 +0000 (0:00:00.061) 0:02:57.353 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify if the mssql-server-ha package is installed] ********************** Wednesday 31 August 2022 11:36:40 +0000 (0:00:00.061) 0:02:57.414 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the hadrenabled setting] ****************************************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.058) 0:02:57.473 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the value of the traceflag setting] ********************************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.060) 0:02:57.533 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is set to 3979] ************************ Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.061) 0:02:57.595 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the traceflag setting is not set to 3979] ******************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.059) 0:02:57.654 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that the alternatewritethrough setting is false] ****************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.060) 0:02:57.715 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the writethrough setting] ***************************************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.060) 0:02:57.775 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting] ********************************************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.060) 0:02:57.835 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlscert setting] ************************************ Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.097) 0:02:57.933 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlscert' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005594", "end": "2022-08-31 11:36:41.811591", "rc": 0, "start": "2022-08-31 11:36:41.805997" } STDOUT: tlscert = /etc/pki/tls/certs/ansible.evy_wi3y TASK [Verify the tlscert setting when it is type str] ************************** Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.356) 0:02:58.289 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlscert setting when it is type bool] ************************* Wednesday 31 August 2022 11:36:41 +0000 (0:00:00.065) 0:02:58.355 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = ansible.evy_wi3y] ********************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.073) 0:02:58.429 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting] *********************************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.062) 0:02:58.491 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlskey setting] ************************************* Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.100) 0:02:58.592 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlskey' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005472", "end": "2022-08-31 11:36:42.400676", "rc": 0, "start": "2022-08-31 11:36:42.395204" } STDOUT: tlskey = /etc/pki/tls/private/ansible.fjl2oebi TASK [Verify the tlskey setting when it is type str] *************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.287) 0:02:58.880 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlskey setting when it is type bool] ************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.065) 0:02:58.946 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = ansible.fjl2oebi] ********************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.073) 0:02:59.020 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlsprotocols setting] ***************************************** Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.062) 0:02:59.082 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the tlsprotocols setting] ******************************* Wednesday 31 August 2022 11:36:42 +0000 (0:00:00.100) 0:02:59.183 ****** ok: [sut] => { "changed": false, "cmd": "grep '^tlsprotocols' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005694", "end": "2022-08-31 11:36:42.998745", "rc": 0, "start": "2022-08-31 11:36:42.993051" } STDOUT: tlsprotocols = 1.2 TASK [Verify the tlsprotocols setting when it is type str] ********************* Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.339) 0:02:59.523 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the tlsprotocols setting when it is type bool] ******************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.066) 0:02:59.589 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify that tcpport = 1.2] *********************************************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.072) 0:02:59.662 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting] ************************************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.062) 0:02:59.724 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/mssql_conf_verify.yml for sut TASK [Get the value of the forceencryption setting] **************************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.102) 0:02:59.827 ****** ok: [sut] => { "changed": false, "cmd": "grep '^forceencryption' /var/opt/mssql/mssql.conf || true", "delta": "0:00:00.005641", "end": "2022-08-31 11:36:43.640477", "rc": 0, "start": "2022-08-31 11:36:43.634836" } STDOUT: forceencryption = 1 TASK [Verify the forceencryption setting when it is type str] ****************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.294) 0:03:00.121 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the forceencryption setting when it is type bool] ***************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.067) 0:03:00.189 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that tcpport = True] ********************************************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.095) 0:03:00.285 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check the ansible_managed header in the configuration file] ************** Wednesday 31 August 2022 11:36:43 +0000 (0:00:00.062) 0:03:00.347 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/tasks/check_header.yml for sut TASK [Grep the ansible_managed header in /var/opt/mssql/mssql.conf] ************ Wednesday 31 August 2022 11:36:44 +0000 (0:00:00.164) 0:03:00.512 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "Ansible managed\n", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003941", "end": "2022-08-31 11:36:44.452079", "rc": 0, "start": "2022-08-31 11:36:44.448138" } STDOUT: # BEGIN ANSIBLE MANAGED BLOCK # # Ansible managed # # END ANSIBLE MANAGED BLOCK [sqlagent] enabled = false [EULA] accepteula = Y [network] tlscert = /etc/pki/tls/certs/ansible.evy_wi3y tlskey = /etc/pki/tls/private/ansible.fjl2oebi tlsprotocols = 1.2 forceencryption = 1 PLAY RECAP ********************************************************************* sut : ok=186 changed=35 unreachable=0 failed=0 skipped=305 rescued=0 ignored=0 Wednesday 31 August 2022 11:36:44 +0000 (0:00:00.503) 0:03:01.015 ****** =============================================================================== linux-system-roles.mssql : Ensure the mssql-server package ------------- 52.69s linux-system-roles.mssql : Set up MSSQL --------------------------------- 7.78s linux-system-roles.mssql : Ensure that SQL Server client tools are installed --- 5.15s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 4.09s Wait for mssql-server to start and prepare for client connections ------- 3.57s Wait for mssql-server to start and prepare for client connections ------- 3.46s Wait for mssql-server to start and prepare for client connections ------- 3.45s linux-system-roles.mssql : Gather system services facts ----------------- 2.10s linux-system-roles.mssql : Ensure that the mssql-server service is started --- 2.08s linux-system-roles.mssql : Gather system services facts ----------------- 2.04s Ensure the openssl package ---------------------------------------------- 2.02s linux-system-roles.mssql : Gather system services facts ----------------- 2.01s linux-system-roles.mssql : Attempt to add mssql to the list of Tuned profiles --- 1.88s linux-system-roles.mssql : Gather package facts ------------------------- 1.88s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 1.84s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.84s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.82s linux-system-roles.mssql : Ensure that SQL Server client tools are installed --- 1.82s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 1.82s linux-system-roles.mssql : Ensure that SQL Server client tools are installed --- 1.81s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---