# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Ensure that the role can input sql files to MSSQL] *********************** TASK [Gathering Facts] ********************************************************* Wednesday 31 August 2022 10:55:05 +0000 (0:00:00.021) 0:00:00.021 ****** ok: [sut] TASK [Set up MSSQL and input sql files with pre_input] ************************* Wednesday 31 August 2022 10:55:06 +0000 (0:00:01.074) 0:00:01.096 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 10:55:06 +0000 (0:00:00.133) 0:00:01.229 ****** 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 10:55:06 +0000 (0:00:00.040) 0:00:01.270 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 10:55:07 +0000 (0:00:00.448) 0:00:01.719 ****** 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 10:55:07 +0000 (0:00:00.115) 0:00:01.834 ****** 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 10:55:07 +0000 (0:00:00.043) 0:00:01.877 ****** 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 10:55:07 +0000 (0:00:00.042) 0:00:01.920 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 10:55:07 +0000 (0:00:00.037) 0:00:01.957 ****** 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 10:55:07 +0000 (0:00:00.036) 0:00:01.993 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 10:55:07 +0000 (0:00:00.036) 0:00:02.029 ****** 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 10:55:07 +0000 (0:00:00.036) 0:00:02.066 ****** 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 10:55:07 +0000 (0:00:00.069) 0:00:02.136 ****** 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 10:55:07 +0000 (0:00:00.070) 0:00:02.206 ****** 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 10:55:07 +0000 (0:00:00.051) 0:00:02.258 ****** 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 10:55:07 +0000 (0:00:00.049) 0:00:02.308 ****** 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 10:55:07 +0000 (0:00:00.049) 0:00:02.357 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 10:55:07 +0000 (0:00:00.049) 0:00:02.407 ****** 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 10:55:09 +0000 (0:00:01.861) 0:00:04.269 ****** 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 10:55:09 +0000 (0:00:00.069) 0:00:04.338 ****** changed: [sut] => { "changed": true } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 10:55:10 +0000 (0:00:01.023) 0:00:05.361 ****** 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 10:55:10 +0000 (0:00:00.069) 0:00:05.430 ****** 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 10:55:11 +0000 (0:00:00.093) 0:00:05.523 ****** 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 10:55:11 +0000 (0:00:00.432) 0:00:05.956 ****** 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 10:56:04 +0000 (0:00:53.423) 0:00:59.379 ****** 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 10:56:04 +0000 (0:00:00.050) 0:00:59.429 ****** 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.008312", "end": "2022-08-31 10:56:05.322234", "rc": 0, "start": "2022-08-31 10:56:05.313922" } TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 10:56:05 +0000 (0:00:00.460) 0:00:59.890 ****** 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 10:56:07 +0000 (0:00:02.217) 0:01:02.108 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 10:56:07 +0000 (0:00:00.109) 0:01:02.217 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql/bin/mssql-conf", "-n", "setup" ], "delta": "0:00:07.331208", "end": "2022-08-31 10:56:15.283700", "rc": 0, "start": "2022-08-31 10:56:07.952492" } 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 10:56:15 +0000 (0:00:07.645) 0:01:09.862 ****** 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 10:56:19 +0000 (0:00:03.981) 0:01:13.844 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:47:46 UTC", "ActiveEnterTimestampMonotonic": "15528353", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target systemd-sysctl.service dbus.service systemd-journald.socket system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:47:45 UTC", "AssertTimestampMonotonic": "14248603", "Before": "multi-user.target shutdown.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 10:47:45 UTC", "ConditionTimestampMonotonic": "14248601", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target auto-cpufreq.service cpupower.service tlp.service power-profiles-daemon.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": "746", "ExecMainStartTimestamp": "Wed 2022-08-31 10:47:45 UTC", "ExecMainStartTimestampMonotonic": "14250157", "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 10:47:45 UTC", "InactiveExitTimestampMonotonic": "14250239", "InvocationID": "1e8d82d485cb44089825b62ce0e72d22", "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": "746", "MemoryAccounting": "yes", "MemoryCurrent": "23511040", "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": "dbus.socket dbus.service system.slice polkit.service sysinit.target", "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 10:47:46 UTC", "StateChangeTimestampMonotonic": "15528353", "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 10:47:46 UTC", "WatchdogTimestampMonotonic": "15528349", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 10:56:20 +0000 (0:00:01.144) 0:01:14.988 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.360084", "end": "2022-08-31 10:56:21.234938", "rc": 0, "start": "2022-08-31 10:56:20.874854" } 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 10:56:21 +0000 (0:00:00.824) 0:01:15.812 ****** changed: [sut] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest", "mssql" ], "delta": "0:00:01.439559", "end": "2022-08-31 10:56:23.152622", "failed_when_result": false, "rc": 0, "start": "2022-08-31 10:56:21.713063" } TASK [linux-system-roles.mssql : Remove troublemaking include from the mssql profile] *** Wednesday 31 August 2022 10:56:23 +0000 (0:00:01.914) 0:01:17.727 ****** 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 10:56:23 +0000 (0:00:00.054) 0:01:17.781 ****** 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 10:56:23 +0000 (0:00:00.055) 0:01:17.836 ****** 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 10:56:23 +0000 (0:00:00.333) 0:01:18.170 ****** 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 10:56:28 +0000 (0:00:04.925) 0:01:23.095 ****** 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 10:56:28 +0000 (0:00:00.059) 0:01:23.154 ****** 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 10:56:28 +0000 (0:00:00.057) 0:01:23.212 ****** 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 10:56:28 +0000 (0:00:00.062) 0:01:23.274 ****** 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 10:56:28 +0000 (0:00:00.085) 0:01:23.359 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=create_example_db.j2) included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=create_example_db.j2) TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:56:28 +0000 (0:00:00.125) 0:01:23.485 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:56:29 +0000 (0:00:00.066) 0:01:23.551 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Create a tempfile for the SQL file on the host] *** Wednesday 31 August 2022 10:56:29 +0000 (0:00:00.076) 0:01:23.628 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.8tqrh3f9", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Copy the create_example_db.j2 file to the host] *** Wednesday 31 August 2022 10:56:29 +0000 (0:00:00.401) 0:01:24.029 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Generate the create_example_db.j2 template on the host] *** Wednesday 31 August 2022 10:56:29 +0000 (0:00:00.062) 0:01:24.092 ****** ok: [sut] => { "changed": false, "checksum": "01e12e2023db8e40fe4ae7ef2965811c47e20292", "dest": "/tmp/ansible.8tqrh3f9", "gid": 0, "group": "root", "md5sum": "7c0c7d727a2dd24b642249e3f26f11cb", "mode": "0664", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 891, "src": "/root/.ansible/tmp/ansible-tmp-1661943389.6631393-5786-51473284507185/source", "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 10:56:30 +0000 (0:00:01.056) 0:01:25.148 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "637231104", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Wait for mssql-server to prepare for client connections] *** Wednesday 31 August 2022 10:56:31 +0000 (0:00:00.459) 0:01:25.608 ****** ok: [sut] => { "changed": false, "elapsed": 0, "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": 8078, "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 10:56:31 +0000 (0:00:00.451) 0:01:26.060 ****** 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 10:56:31 +0000 (0:00:00.138) 0:01:26.199 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "637231104", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 10:56:32 +0000 (0:00:00.448) 0:01:26.647 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004169", "end": "2022-08-31 10:56:32.355183", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:56:32.351014" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 10:56:32 +0000 (0:00:00.275) 0:01:26.923 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003985", "end": "2022-08-31 10:56:32.634188", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:56:32.630203" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 10:56:32 +0000 (0:00:00.279) 0:01:27.203 ****** 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 : Input create_example_db.j2 with the sqlcmd command] *** Wednesday 31 August 2022 10:56:32 +0000 (0:00:00.097) 0:01:27.300 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-i", "/tmp/ansible.8tqrh3f9", "-b" ], "delta": "0:00:00.647990", "end": "2022-08-31 10:56:33.654630", "rc": 0, "start": "2022-08-31 10:56:33.006640" } STDOUT: Creating the ExampleDB1 database The ExampleDB1 database created successfully Changed database context to 'ExampleDB1'. Adding the Inventory table to the ExampleDB1 database (1 rows affected) (1 rows affected) (1 rows affected) (1 rows affected) The Inventory table created successfully TASK [linux-system-roles.mssql : Print the output of the sqlcmd command for create_example_db.j2 if not empty] *** Wednesday 31 August 2022 10:56:33 +0000 (0:00:00.930) 0:01:28.231 ****** ok: [sut] => { "__mssql_sqlcmd_input_file.stdout_lines": [ "Creating the ExampleDB1 database", "The ExampleDB1 database created successfully", "Changed database context to 'ExampleDB1'.", "Adding the Inventory table to the ExampleDB1 database", "", "(1 rows affected)", "", "(1 rows affected)", "", "(1 rows affected)", "", "(1 rows affected)", "The Inventory table created successfully" ] } TASK [linux-system-roles.mssql : Remove the tempfile] ************************** Wednesday 31 August 2022 10:56:33 +0000 (0:00:00.093) 0:01:28.324 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fail because the Input with sqlcmd task failed] *** Wednesday 31 August 2022 10:56:33 +0000 (0:00:00.061) 0:01:28.386 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:56:33 +0000 (0:00:00.059) 0:01:28.445 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:56:33 +0000 (0:00:00.066) 0:01:28.512 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Create a tempfile for the SQL file on the host] *** Wednesday 31 August 2022 10:56:34 +0000 (0:00:00.173) 0:01:28.685 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.74zrxten", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Copy the create_example_db.j2 file to the host] *** Wednesday 31 August 2022 10:56:34 +0000 (0:00:00.277) 0:01:28.963 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Generate the create_example_db.j2 template on the host] *** Wednesday 31 August 2022 10:56:34 +0000 (0:00:00.064) 0:01:29.027 ****** ok: [sut] => { "changed": false, "checksum": "01e12e2023db8e40fe4ae7ef2965811c47e20292", "dest": "/tmp/ansible.74zrxten", "gid": 0, "group": "root", "md5sum": "7c0c7d727a2dd24b642249e3f26f11cb", "mode": "0664", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 891, "src": "/root/.ansible/tmp/ansible-tmp-1661943394.5976179-5833-137557786701849/source", "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 10:56:35 +0000 (0:00:00.740) 0:01:29.767 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "658235392", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Wait for mssql-server to prepare for client connections] *** Wednesday 31 August 2022 10:56:35 +0000 (0:00:00.451) 0:01:30.219 ****** ok: [sut] => { "changed": false, "elapsed": 0, "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": 8475, "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 10:56:35 +0000 (0:00:00.289) 0:01:30.509 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Input create_example_db.j2 with the sqlcmd command] *** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.062) 0:01:30.571 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-i", "/tmp/ansible.74zrxten", "-b" ], "delta": "0:00:00.032181", "end": "2022-08-31 10:56:36.313941", "rc": 0, "start": "2022-08-31 10:56:36.281760" } STDOUT: The ExampleDB1 database already exists, skipping Changed database context to 'ExampleDB1'. The Inventory table already exists, skipping TASK [linux-system-roles.mssql : Print the output of the sqlcmd command for create_example_db.j2 if not empty] *** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.318) 0:01:30.890 ****** ok: [sut] => { "__mssql_sqlcmd_input_file.stdout_lines": [ "The ExampleDB1 database already exists, skipping", "Changed database context to 'ExampleDB1'.", "The Inventory table already exists, skipping" ] } TASK [linux-system-roles.mssql : Remove the tempfile] ************************** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.094) 0:01:30.985 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fail because the Input with sqlcmd task failed] *** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.059) 0:01:31.045 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.058) 0:01:31.103 ****** 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 10:56:36 +0000 (0:00:00.100) 0:01:31.204 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.059) 0:01:31.263 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.059) 0:01:31.323 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.061) 0:01:31.384 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 10:56:36 +0000 (0:00:00.073) 0:01:31.458 ****** 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 10:56:37 +0000 (0:00:00.072) 0:01:31.530 ****** 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 10:56:37 +0000 (0:00:00.087) 0:01:31.618 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003792", "end": "2022-08-31 10:56:37.343809", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:56:37.340017" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 10:56:37 +0000 (0:00:00.296) 0:01:31.914 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.142854", "end": "2022-08-31 10:56:37.786494", "failed_when_result": false, "rc": 0, "start": "2022-08-31 10:56:37.643640" } 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 10:56:37 +0000 (0:00:00.454) 0:01:32.369 ****** 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 10:56:37 +0000 (0:00:00.055) 0:01:32.424 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 10:56:37 +0000 (0:00:00.071) 0:01:32.496 ****** 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 10:56:38 +0000 (0:00:00.059) 0:01:32.555 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.058) 0:01:32.614 ****** 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 10:56:38 +0000 (0:00:00.058) 0:01:32.672 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.103) 0:01:32.776 ****** 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 10:56:38 +0000 (0:00:00.060) 0:01:32.836 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.059) 0:01:32.896 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.065) 0:01:32.962 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.060) 0:01:33.022 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.059) 0:01:33.082 ****** 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 10:56:38 +0000 (0:00:00.064) 0:01:33.146 ****** skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.066) 0:01:33.212 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.058) 0:01:33.271 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.063) 0:01:33.335 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 10:56:38 +0000 (0:00:00.060) 0:01:33.396 ****** 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 10:56:38 +0000 (0:00:00.060) 0:01:33.457 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.076) 0:01:33.533 ****** 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 10:56:39 +0000 (0:00:00.076) 0:01:33.609 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.075) 0:01:33.685 ****** 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 10:56:39 +0000 (0:00:00.072) 0:01:33.757 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.112) 0:01:33.869 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.072) 0:01:33.942 ****** 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 10:56:39 +0000 (0:00:00.071) 0:01:34.014 ****** 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 10:56:39 +0000 (0:00:00.079) 0:01:34.093 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.074) 0:01:34.168 ****** 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 10:56:39 +0000 (0:00:00.075) 0:01:34.243 ****** 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 10:56:39 +0000 (0:00:00.083) 0:01:34.327 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 10:56:39 +0000 (0:00:00.073) 0:01:34.400 ****** 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 10:56:39 +0000 (0:00:00.072) 0:01:34.472 ****** 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 10:56:40 +0000 (0:00:00.074) 0:01:34.547 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.075) 0:01:34.622 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.073) 0:01:34.696 ****** 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 10:56:40 +0000 (0:00:00.073) 0:01:34.769 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.074) 0:01:34.843 ****** 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 10:56:40 +0000 (0:00:00.071) 0:01:34.915 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.072) 0:01:34.988 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.120) 0:01:35.108 ****** 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 10:56:40 +0000 (0:00:00.070) 0:01:35.179 ****** 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 10:56:40 +0000 (0:00:00.089) 0:01:35.268 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.075) 0:01:35.344 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.071) 0:01:35.415 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 10:56:40 +0000 (0:00:00.078) 0:01:35.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 10:56:41 +0000 (0:00:00.073) 0:01:35.567 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:56:41 +0000 (0:00:00.074) 0:01:35.641 ****** 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 10:56:41 +0000 (0:00:00.086) 0:01:35.728 ****** 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 10:56:41 +0000 (0:00:00.079) 0:01:35.807 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 10:56:41 +0000 (0:00:00.073) 0:01:35.881 ****** 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 10:56:41 +0000 (0:00:00.078) 0:01:35.960 ****** 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 10:56:41 +0000 (0:00:00.074) 0:01:36.034 ****** changed: [sut] => { "changed": true } MSG: Block inserted TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 10:56:42 +0000 (0:00:00.537) 0:01:36.572 ****** TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 10:56:42 +0000 (0:00:00.032) 0:01:36.604 ****** TASK [Assert the latest script invocation resulted in no changes] ************** Wednesday 31 August 2022 10:56:42 +0000 (0:00:00.130) 0:01:36.734 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set up MSSQL and input sql files with post_input] ************************ Wednesday 31 August 2022 10:56:42 +0000 (0:00:00.077) 0:01:36.811 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 10:56:42 +0000 (0:00:00.223) 0:01:37.035 ****** 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 10:56:42 +0000 (0:00:00.084) 0:01:37.120 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 10:56:43 +0000 (0:00:00.493) 0:01:37.614 ****** 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 10:56:43 +0000 (0:00:00.114) 0:01:37.728 ****** 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 10:56:43 +0000 (0:00:00.069) 0:01:37.798 ****** 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 10:56:43 +0000 (0:00:00.072) 0:01:37.870 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 10:56:43 +0000 (0:00:00.065) 0:01:37.935 ****** 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 10:56:43 +0000 (0:00:00.108) 0:01:38.044 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 10:56:43 +0000 (0:00:00.064) 0:01:38.108 ****** 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 10:56:43 +0000 (0:00:00.068) 0:01:38.177 ****** 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 10:56:43 +0000 (0:00:00.096) 0:01:38.273 ****** 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 10:56:43 +0000 (0:00:00.115) 0:01:38.389 ****** 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 10:56:43 +0000 (0:00:00.080) 0:01:38.469 ****** 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 10:56:44 +0000 (0:00:00.079) 0:01:38.549 ****** 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 10:56:44 +0000 (0:00:00.077) 0:01:38.627 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 10:56:44 +0000 (0:00:00.078) 0:01:38.706 ****** 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 10:56:45 +0000 (0:00:01.585) 0:01:40.291 ****** 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 10:56:45 +0000 (0:00:00.121) 0:01:40.413 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 10:56:46 +0000 (0:00:00.592) 0:01:41.005 ****** 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 10:56:46 +0000 (0:00:00.076) 0:01:41.082 ****** 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 10:56:46 +0000 (0:00:00.078) 0:01:41.160 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 10:56:46 +0000 (0:00:00.088) 0:01:41.249 ****** 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 10:56:48 +0000 (0:00:01.788) 0:01:43.037 ****** 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 10:56:48 +0000 (0:00:00.055) 0:01:43.093 ****** 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.007233", "end": "2022-08-31 10:56:48.808508", "rc": 0, "start": "2022-08-31 10:56:48.801275" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 10:56:48 +0000 (0:00:00.296) 0:01:43.390 ****** 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 10:56:53 +0000 (0:00:05.063) 0:01:48.453 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 10:56:54 +0000 (0:00:00.086) 0:01:48.540 ****** 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 10:56:54 +0000 (0:00:00.087) 0:01:48.627 ****** 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 10:56:55 +0000 (0:00:01.787) 0:01:50.415 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:47:46 UTC", "ActiveEnterTimestampMonotonic": "15528353", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target systemd-sysctl.service dbus.service systemd-journald.socket system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:47:45 UTC", "AssertTimestampMonotonic": "14248603", "Before": "multi-user.target shutdown.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 10:47:45 UTC", "ConditionTimestampMonotonic": "14248601", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target auto-cpufreq.service cpupower.service tlp.service power-profiles-daemon.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": "746", "ExecMainStartTimestamp": "Wed 2022-08-31 10:47:45 UTC", "ExecMainStartTimestampMonotonic": "14250157", "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 10:47:45 UTC", "InactiveExitTimestampMonotonic": "14250239", "InvocationID": "1e8d82d485cb44089825b62ce0e72d22", "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": "746", "MemoryAccounting": "yes", "MemoryCurrent": "24248320", "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": "dbus.socket dbus.service system.slice polkit.service sysinit.target", "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 10:47:46 UTC", "StateChangeTimestampMonotonic": "15528353", "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 10:47:46 UTC", "WatchdogTimestampMonotonic": "15528349", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 10:56:56 +0000 (0:00:00.548) 0:01:50.963 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.144940", "end": "2022-08-31 10:56:56.811809", "rc": 0, "start": "2022-08-31 10:56:56.666869" } 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 10:56:56 +0000 (0:00:00.421) 0:01:51.384 ****** 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 10:56:56 +0000 (0:00:00.056) 0:01:51.441 ****** 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 10:56:56 +0000 (0:00:00.055) 0:01:51.496 ****** 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 10:56:57 +0000 (0:00:00.055) 0:01:51.551 ****** 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 10:56:57 +0000 (0:00:00.294) 0:01:51.846 ****** 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 10:56:59 +0000 (0:00:01.779) 0:01:53.625 ****** 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 10:56:59 +0000 (0:00:00.099) 0:01:53.724 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "662241280", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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": "136", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 10:56:59 +0000 (0:00:00.524) 0:01:54.248 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003815", "end": "2022-08-31 10:56:59.966156", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:56:59.962341" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 10:57:00 +0000 (0:00:00.288) 0:01:54.537 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003833", "end": "2022-08-31 10:57:00.254192", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:57:00.250359" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 10:57:00 +0000 (0:00:00.287) 0:01:54.824 ****** 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 10:57:00 +0000 (0:00:00.108) 0:01:54.933 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.031804", "end": "2022-08-31 10:57:00.679498", "rc": 0, "start": "2022-08-31 10:57:00.647694" } 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 10:57:00 +0000 (0:00:00.318) 0:01:55.252 ****** 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 10:57:00 +0000 (0:00:00.063) 0:01:55.315 ****** 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 10:57:00 +0000 (0:00:00.065) 0:01:55.381 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 10:57:00 +0000 (0:00:00.051) 0:01:55.432 ****** 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 10:57:00 +0000 (0:00:00.062) 0:01:55.495 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 10:57:01 +0000 (0:00:00.062) 0:01:55.557 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 10:57:01 +0000 (0:00:00.062) 0:01:55.620 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 10:57:01 +0000 (0:00:00.060) 0:01:55.680 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 10:57:01 +0000 (0:00:00.119) 0:01:55.800 ****** 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 10:57:01 +0000 (0:00:00.074) 0:01:55.875 ****** 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 10:57:01 +0000 (0:00:00.089) 0:01:55.964 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003932", "end": "2022-08-31 10:57:01.694545", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:57:01.690613" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 10:57:01 +0000 (0:00:00.303) 0:01:56.267 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.143517", "end": "2022-08-31 10:57:02.150714", "failed_when_result": false, "rc": 0, "start": "2022-08-31 10:57:02.007197" } 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 10:57:02 +0000 (0:00:00.468) 0:01:56.736 ****** 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 10:57:02 +0000 (0:00:00.055) 0:01:56.792 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.075) 0:01:56.867 ****** 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 10:57:02 +0000 (0:00:00.063) 0:01:56.930 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.062) 0:01:56.993 ****** 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 10:57:02 +0000 (0:00:00.061) 0:01:57.055 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.061) 0:01:57.116 ****** 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 10:57:02 +0000 (0:00:00.062) 0:01:57.178 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.062) 0:01:57.241 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.102) 0:01:57.344 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.062) 0:01:57.406 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 10:57:02 +0000 (0:00:00.061) 0:01:57.468 ****** 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 10:57:03 +0000 (0:00:00.060) 0:01:57.528 ****** skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.073) 0:01:57.602 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.062) 0:01:57.664 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.060) 0:01:57.725 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.060) 0:01:57.785 ****** 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 10:57:03 +0000 (0:00:00.067) 0:01:57.852 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.072) 0:01:57.925 ****** 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 10:57:03 +0000 (0:00:00.077) 0:01:58.003 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.072) 0:01:58.076 ****** 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 10:57:03 +0000 (0:00:00.076) 0:01:58.152 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.074) 0:01:58.226 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 10:57:03 +0000 (0:00:00.122) 0:01:58.349 ****** 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 10:57:03 +0000 (0:00:00.073) 0:01:58.422 ****** 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 10:57:03 +0000 (0:00:00.086) 0:01:58.508 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.074) 0:01:58.583 ****** 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 10:57:04 +0000 (0:00:00.072) 0:01:58.655 ****** 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 10:57:04 +0000 (0:00:00.083) 0:01:58.739 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.079) 0:01:58.818 ****** 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 10:57:04 +0000 (0:00:00.073) 0:01:58.892 ****** 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 10:57:04 +0000 (0:00:00.075) 0:01:58.967 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.072) 0:01:59.040 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.076) 0:01:59.117 ****** 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 10:57:04 +0000 (0:00:00.073) 0:01:59.190 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.072) 0:01:59.263 ****** 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 10:57:04 +0000 (0:00:00.072) 0:01:59.336 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:57:04 +0000 (0:00:00.076) 0:01:59.412 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.116) 0:01:59.529 ****** 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 10:57:05 +0000 (0:00:00.074) 0:01:59.603 ****** 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 10:57:05 +0000 (0:00:00.085) 0:01:59.689 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.078) 0:01:59.767 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.075) 0:01:59.843 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.076) 0:01:59.919 ****** 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 10:57:05 +0000 (0:00:00.074) 0:01:59.993 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.080) 0:02:00.074 ****** 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 10:57:05 +0000 (0:00:00.084) 0:02:00.159 ****** 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 10:57:05 +0000 (0:00:00.083) 0:02:00.242 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 10:57:05 +0000 (0:00:00.074) 0:02:00.317 ****** 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 10:57:05 +0000 (0:00:00.079) 0:02:00.397 ****** 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 10:57:05 +0000 (0:00:00.075) 0:02:00.472 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 10:57:06 +0000 (0:00:00.425) 0:02:00.898 ****** TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 10:57:06 +0000 (0:00:00.073) 0:02:00.971 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=sql_script.sql) included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=sql_script.sql) TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:57:06 +0000 (0:00:00.131) 0:02:01.103 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:57:06 +0000 (0:00:00.067) 0:02:01.171 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Create a tempfile for the SQL file on the host] *** Wednesday 31 August 2022 10:57:06 +0000 (0:00:00.082) 0:02:01.253 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.ra6zu8m_", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Copy the sql_script.sql file to the host] ***** Wednesday 31 August 2022 10:57:07 +0000 (0:00:00.276) 0:02:01.530 ****** ok: [sut] => { "changed": false, "checksum": "67de8f18f6fcaa09e738d8c66f024167f8a33041", "dest": "/tmp/ansible.ra6zu8m_", "gid": 0, "group": "root", "md5sum": "1b9811caa61ae40c1e20f7b8b059f23c", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 1481, "src": "/root/.ansible/tmp/ansible-tmp-1661943427.1018748-6224-153425950942979/source", "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Generate the sql_script.sql template on the host] *** Wednesday 31 August 2022 10:57:07 +0000 (0:00:00.736) 0:02:02.267 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 10:57:07 +0000 (0:00:00.060) 0:02:02.328 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "663179264", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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": "136", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Wait for mssql-server to prepare for client connections] *** Wednesday 31 August 2022 10:57:08 +0000 (0:00:00.460) 0:02:02.788 ****** ok: [sut] => { "changed": false, "elapsed": 0, "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": 8475, "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 10:57:08 +0000 (0:00:00.279) 0:02:03.068 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Input sql_script.sql with the sqlcmd command] *** Wednesday 31 August 2022 10:57:08 +0000 (0:00:00.061) 0:02:03.129 ****** changed: [sut] => { "changed": true, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-i", "/tmp/ansible.ra6zu8m_", "-b" ], "delta": "0:00:00.645284", "end": "2022-08-31 10:57:09.538228", "rc": 0, "start": "2022-08-31 10:57:08.892944" } STDOUT: Creating the MyLogin login The MyLogin login created successfully Creating the MyUser user The MyUser user created successfully Creating the ExampleDB database The ExampleDB database created successfully Changed database context to 'ExampleDB'. Adding the Inventory table to the ExampleDB database (1 rows affected) (1 rows affected) (1 rows affected) (1 rows affected) The Inventory table created successfully TASK [linux-system-roles.mssql : Print the output of the sqlcmd command for sql_script.sql if not empty] *** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.983) 0:02:04.113 ****** ok: [sut] => { "__mssql_sqlcmd_input_file.stdout_lines": [ "Creating the MyLogin login", "The MyLogin login created successfully", "Creating the MyUser user", "The MyUser user created successfully", "Creating the ExampleDB database", "The ExampleDB database created successfully", "Changed database context to 'ExampleDB'.", "Adding the Inventory table to the ExampleDB database", "", "(1 rows affected)", "", "(1 rows affected)", "", "(1 rows affected)", "", "(1 rows affected)", "The Inventory table created successfully" ] } TASK [linux-system-roles.mssql : Remove the tempfile] ************************** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.096) 0:02:04.209 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fail because the Input with sqlcmd task failed] *** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.061) 0:02:04.271 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.060) 0:02:04.331 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.071) 0:02:04.403 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Create a tempfile for the SQL file on the host] *** Wednesday 31 August 2022 10:57:09 +0000 (0:00:00.081) 0:02:04.484 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.5ent1gt5", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Copy the sql_script.sql file to the host] ***** Wednesday 31 August 2022 10:57:10 +0000 (0:00:00.275) 0:02:04.760 ****** ok: [sut] => { "changed": false, "checksum": "67de8f18f6fcaa09e738d8c66f024167f8a33041", "dest": "/tmp/ansible.5ent1gt5", "gid": 0, "group": "root", "md5sum": "1b9811caa61ae40c1e20f7b8b059f23c", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 1481, "src": "/root/.ansible/tmp/ansible-tmp-1661943430.33125-6260-46241566178999/source", "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Generate the sql_script.sql template on the host] *** Wednesday 31 August 2022 10:57:10 +0000 (0:00:00.744) 0:02:05.505 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 10:57:11 +0000 (0:00:00.062) 0:02:05.567 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "673861632", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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": "136", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Wait for mssql-server to prepare for client connections] *** Wednesday 31 August 2022 10:57:11 +0000 (0:00:00.487) 0:02:06.055 ****** ok: [sut] => { "changed": false, "elapsed": 0, "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": 8869, "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 10:57:11 +0000 (0:00:00.284) 0:02:06.339 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Input sql_script.sql with the sqlcmd command] *** Wednesday 31 August 2022 10:57:11 +0000 (0:00:00.063) 0:02:06.403 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-i", "/tmp/ansible.5ent1gt5", "-b" ], "delta": "0:00:00.052771", "end": "2022-08-31 10:57:12.163325", "rc": 0, "start": "2022-08-31 10:57:12.110554" } STDOUT: The MyLogin login already exists, skipping The MyUser user already exists, skipping The ExampleDB database already exists, skipping Changed database context to 'ExampleDB'. The Inventory table already exists, skipping TASK [linux-system-roles.mssql : Print the output of the sqlcmd command for sql_script.sql if not empty] *** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.337) 0:02:06.741 ****** ok: [sut] => { "__mssql_sqlcmd_input_file.stdout_lines": [ "The MyLogin login already exists, skipping", "The MyUser user already exists, skipping", "The ExampleDB database already exists, skipping", "Changed database context to 'ExampleDB'.", "The Inventory table already exists, skipping" ] } TASK [linux-system-roles.mssql : Remove the tempfile] ************************** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.097) 0:02:06.838 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fail because the Input with sqlcmd task failed] *** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.062) 0:02:06.900 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert the latest script invocation resulted in no changes] ************** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.091) 0:02:06.992 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Input the sql file without the mssql_password variable] ****************** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.076) 0:02:07.068 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 10:57:12 +0000 (0:00:00.166) 0:02:07.234 ****** 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 10:57:12 +0000 (0:00:00.130) 0:02:07.364 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 10:57:13 +0000 (0:00:00.490) 0:02:07.855 ****** 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 10:57:13 +0000 (0:00:00.115) 0:02:07.970 ****** 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 10:57:13 +0000 (0:00:00.076) 0:02:08.047 ****** 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 10:57:13 +0000 (0:00:00.076) 0:02:08.123 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 10:57:13 +0000 (0:00:00.063) 0:02:08.186 ****** 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 10:57:13 +0000 (0:00:00.063) 0:02:08.250 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 10:57:13 +0000 (0:00:00.064) 0:02:08.314 ****** 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 10:57:13 +0000 (0:00:00.063) 0:02:08.377 ****** 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 10:57:13 +0000 (0:00:00.095) 0:02:08.473 ****** 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 10:57:14 +0000 (0:00:00.093) 0:02:08.567 ****** 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 10:57:14 +0000 (0:00:00.073) 0:02:08.640 ****** 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 10:57:14 +0000 (0:00:00.074) 0:02:08.715 ****** 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 10:57:14 +0000 (0:00:00.125) 0:02:08.841 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 10:57:14 +0000 (0:00:00.075) 0:02:08.916 ****** 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 10:57:15 +0000 (0:00:01.589) 0:02:10.505 ****** 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 10:57:16 +0000 (0:00:00.075) 0:02:10.581 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 10:57:16 +0000 (0:00:00.596) 0:02:11.178 ****** 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 10:57:16 +0000 (0:00:00.076) 0:02:11.254 ****** 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 10:57:16 +0000 (0:00:00.076) 0:02:11.331 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 10:57:16 +0000 (0:00:00.084) 0:02:11.416 ****** 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 10:57:18 +0000 (0:00:01.853) 0:02:13.269 ****** 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 10:57:18 +0000 (0:00:00.054) 0:02:13.323 ****** 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.007264", "end": "2022-08-31 10:57:19.039603", "rc": 0, "start": "2022-08-31 10:57:19.032339" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 10:57:19 +0000 (0:00:00.287) 0:02:13.611 ****** 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 10:57:24 +0000 (0:00:05.031) 0:02:18.642 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 10:57:24 +0000 (0:00:00.127) 0:02:18.770 ****** 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 10:57:24 +0000 (0:00:00.088) 0:02:18.858 ****** 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 10:57:26 +0000 (0:00:01.788) 0:02:20.647 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:47:46 UTC", "ActiveEnterTimestampMonotonic": "15528353", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target systemd-sysctl.service dbus.service systemd-journald.socket system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:47:45 UTC", "AssertTimestampMonotonic": "14248603", "Before": "multi-user.target shutdown.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 10:47:45 UTC", "ConditionTimestampMonotonic": "14248601", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target auto-cpufreq.service cpupower.service tlp.service power-profiles-daemon.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": "746", "ExecMainStartTimestamp": "Wed 2022-08-31 10:47:45 UTC", "ExecMainStartTimestampMonotonic": "14250157", "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 10:47:45 UTC", "InactiveExitTimestampMonotonic": "14250239", "InvocationID": "1e8d82d485cb44089825b62ce0e72d22", "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": "746", "MemoryAccounting": "yes", "MemoryCurrent": "24322048", "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": "dbus.socket dbus.service system.slice polkit.service sysinit.target", "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 10:47:46 UTC", "StateChangeTimestampMonotonic": "15528353", "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 10:47:46 UTC", "WatchdogTimestampMonotonic": "15528349", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 10:57:26 +0000 (0:00:00.467) 0:02:21.114 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.143551", "end": "2022-08-31 10:57:26.963014", "rc": 0, "start": "2022-08-31 10:57:26.819463" } 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 10:57:27 +0000 (0:00:00.420) 0:02:21.535 ****** 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 10:57:27 +0000 (0:00:00.055) 0:02:21.591 ****** 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 10:57:27 +0000 (0:00:00.057) 0:02:21.649 ****** 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 10:57:27 +0000 (0:00:00.056) 0:02:21.705 ****** 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 10:57:27 +0000 (0:00:00.398) 0:02:22.104 ****** 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 10:57:29 +0000 (0:00:01.785) 0:02:23.889 ****** 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 10:57:29 +0000 (0:00:00.066) 0:02:23.956 ****** 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 10:57:29 +0000 (0:00:00.065) 0:02:24.021 ****** 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 10:57:29 +0000 (0:00:00.072) 0:02:24.094 ****** 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 10:57:29 +0000 (0:00:00.065) 0:02:24.159 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=sql_script.sql) TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:57:29 +0000 (0:00:00.122) 0:02:24.282 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:57:29 +0000 (0:00:00.070) 0:02:24.352 ****** fatal: [sut]: FAILED! => { "assertion": "mssql_password is not none", "changed": false, "evaluated_to": false } MSG: You must define the mssql_password variable because MSSQL requires the sa user to authenticate to input SQL files. TASK [Assert that the role failed with mssql_password not defined] ************* Wednesday 31 August 2022 10:57:29 +0000 (0:00:00.084) 0:02:24.437 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Input the sql file without the mssql_password variable] ****************** Wednesday 31 August 2022 10:57:30 +0000 (0:00:00.182) 0:02:24.619 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 10:57:30 +0000 (0:00:00.170) 0:02:24.790 ****** 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 10:57:30 +0000 (0:00:00.090) 0:02:24.880 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 10:57:30 +0000 (0:00:00.501) 0:02:25.381 ****** 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 10:57:30 +0000 (0:00:00.132) 0:02:25.514 ****** 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 10:57:31 +0000 (0:00:00.076) 0:02:25.590 ****** 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 10:57:31 +0000 (0:00:00.076) 0:02:25.667 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 10:57:31 +0000 (0:00:00.088) 0:02:25.756 ****** 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 10:57:31 +0000 (0:00:00.062) 0:02:25.818 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 10:57:31 +0000 (0:00:00.061) 0:02:25.880 ****** 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 10:57:31 +0000 (0:00:00.119) 0:02:26.000 ****** 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 10:57:31 +0000 (0:00:00.098) 0:02:26.098 ****** 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 10:57:31 +0000 (0:00:00.092) 0:02:26.191 ****** 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 10:57:31 +0000 (0:00:00.083) 0:02:26.275 ****** 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 10:57:31 +0000 (0:00:00.077) 0:02:26.352 ****** 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 10:57:31 +0000 (0:00:00.081) 0:02:26.434 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 10:57:32 +0000 (0:00:00.085) 0:02:26.519 ****** 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 10:57:33 +0000 (0:00:01.610) 0:02:28.130 ****** 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 10:57:33 +0000 (0:00:00.106) 0:02:28.236 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 10:57:34 +0000 (0:00:00.630) 0:02:28.867 ****** 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 10:57:34 +0000 (0:00:00.077) 0:02:28.944 ****** 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 10:57:34 +0000 (0:00:00.083) 0:02:29.028 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 10:57:34 +0000 (0:00:00.090) 0:02:29.118 ****** 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 10:57:36 +0000 (0:00:01.800) 0:02:30.919 ****** 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 10:57:36 +0000 (0:00:00.057) 0:02:30.976 ****** 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.007400", "end": "2022-08-31 10:57:36.690237", "rc": 0, "start": "2022-08-31 10:57:36.682837" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 10:57:36 +0000 (0:00:00.285) 0:02:31.261 ****** 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 10:57:41 +0000 (0:00:05.060) 0:02:36.322 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 10:57:41 +0000 (0:00:00.086) 0:02:36.408 ****** 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 10:57:41 +0000 (0:00:00.089) 0:02:36.498 ****** 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 10:57:43 +0000 (0:00:01.779) 0:02:38.278 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:47:46 UTC", "ActiveEnterTimestampMonotonic": "15528353", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target systemd-sysctl.service dbus.service systemd-journald.socket system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:47:45 UTC", "AssertTimestampMonotonic": "14248603", "Before": "multi-user.target shutdown.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 10:47:45 UTC", "ConditionTimestampMonotonic": "14248601", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target auto-cpufreq.service cpupower.service tlp.service power-profiles-daemon.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": "746", "ExecMainStartTimestamp": "Wed 2022-08-31 10:47:45 UTC", "ExecMainStartTimestampMonotonic": "14250157", "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 10:47:45 UTC", "InactiveExitTimestampMonotonic": "14250239", "InvocationID": "1e8d82d485cb44089825b62ce0e72d22", "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": "746", "MemoryAccounting": "yes", "MemoryCurrent": "24317952", "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": "dbus.socket dbus.service system.slice polkit.service sysinit.target", "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 10:47:46 UTC", "StateChangeTimestampMonotonic": "15528353", "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 10:47:46 UTC", "WatchdogTimestampMonotonic": "15528349", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 10:57:44 +0000 (0:00:00.506) 0:02:38.784 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.143536", "end": "2022-08-31 10:57:44.628095", "rc": 0, "start": "2022-08-31 10:57:44.484559" } 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 10:57:44 +0000 (0:00:00.416) 0:02:39.200 ****** 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 10:57:44 +0000 (0:00:00.055) 0:02:39.256 ****** 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 10:57:44 +0000 (0:00:00.057) 0:02:39.314 ****** 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 10:57:44 +0000 (0:00:00.055) 0:02:39.370 ****** 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 10:57:45 +0000 (0:00:00.286) 0:02:39.656 ****** 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 10:57:46 +0000 (0:00:01.783) 0:02:41.440 ****** 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 10:57:46 +0000 (0:00:00.064) 0:02:41.505 ****** 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 10:57:47 +0000 (0:00:00.063) 0:02:41.568 ****** 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 10:57:47 +0000 (0:00:00.112) 0:02:41.681 ****** 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 10:57:47 +0000 (0:00:00.063) 0:02:41.745 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 10:57:47 +0000 (0:00:00.051) 0:02:41.796 ****** 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 10:57:47 +0000 (0:00:00.065) 0:02:41.862 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 10:57:47 +0000 (0:00:00.064) 0:02:41.926 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 10:57:47 +0000 (0:00:00.063) 0:02:41.990 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 10:57:47 +0000 (0:00:00.070) 0:02:42.060 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 10:57:47 +0000 (0:00:00.076) 0:02:42.136 ****** 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 10:57:47 +0000 (0:00:00.075) 0:02:42.212 ****** 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 10:57:47 +0000 (0:00:00.090) 0:02:42.303 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003721", "end": "2022-08-31 10:57:48.027765", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:57:48.024044" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 10:57:48 +0000 (0:00:00.299) 0:02:42.603 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.138542", "end": "2022-08-31 10:57:48.474113", "failed_when_result": false, "rc": 0, "start": "2022-08-31 10:57:48.335571" } 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 10:57:48 +0000 (0:00:00.458) 0:02:43.061 ****** 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 10:57:48 +0000 (0:00:00.055) 0:02:43.116 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 10:57:48 +0000 (0:00:00.175) 0:02:43.292 ****** 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 10:57:48 +0000 (0:00:00.063) 0:02:43.356 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 10:57:48 +0000 (0:00:00.062) 0:02:43.419 ****** 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 10:57:48 +0000 (0:00:00.063) 0:02:43.483 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.061) 0:02:43.544 ****** 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 10:57:49 +0000 (0:00:00.062) 0:02:43.607 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.062) 0:02:43.669 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.062) 0:02:43.732 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.061) 0:02:43.793 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.061) 0:02:43.855 ****** 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 10:57:49 +0000 (0:00:00.062) 0:02:43.917 ****** skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.067) 0:02:43.985 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.060) 0:02:44.046 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.063) 0:02:44.109 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.116) 0:02:44.225 ****** 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 10:57:49 +0000 (0:00:00.062) 0:02:44.287 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 10:57:49 +0000 (0:00:00.078) 0:02:44.366 ****** 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 10:57:49 +0000 (0:00:00.076) 0:02:44.443 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.074) 0:02:44.517 ****** 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 10:57:50 +0000 (0:00:00.073) 0:02:44.591 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.081) 0:02:44.672 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.076) 0:02:44.749 ****** 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 10:57:50 +0000 (0:00:00.078) 0:02:44.827 ****** 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 10:57:50 +0000 (0:00:00.081) 0:02:44.909 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.077) 0:02:44.986 ****** 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 10:57:50 +0000 (0:00:00.074) 0:02:45.061 ****** 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 10:57:50 +0000 (0:00:00.086) 0:02:45.147 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.074) 0:02:45.221 ****** 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 10:57:50 +0000 (0:00:00.079) 0:02:45.301 ****** 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 10:57:50 +0000 (0:00:00.129) 0:02:45.431 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:57:50 +0000 (0:00:00.076) 0:02:45.507 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.074) 0:02:45.582 ****** 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 10:57:51 +0000 (0:00:00.081) 0:02:45.663 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.075) 0:02:45.738 ****** 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 10:57:51 +0000 (0:00:00.074) 0:02:45.813 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.073) 0:02:45.886 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.079) 0:02:45.965 ****** 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 10:57:51 +0000 (0:00:00.074) 0:02:46.039 ****** 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 10:57:51 +0000 (0:00:00.084) 0:02:46.124 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.074) 0:02:46.198 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.079) 0:02:46.277 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.075) 0:02:46.352 ****** 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 10:57:51 +0000 (0:00:00.073) 0:02:46.425 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:57:51 +0000 (0:00:00.073) 0:02:46.498 ****** 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 10:57:52 +0000 (0:00:00.134) 0:02:46.632 ****** 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 10:57:52 +0000 (0:00:00.081) 0:02:46.714 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 10:57:52 +0000 (0:00:00.074) 0:02:46.789 ****** 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 10:57:52 +0000 (0:00:00.075) 0:02:46.864 ****** 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 10:57:52 +0000 (0:00:00.076) 0:02:46.941 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 10:57:52 +0000 (0:00:00.370) 0:02:47.312 ****** TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 10:57:52 +0000 (0:00:00.032) 0:02:47.344 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=sql_script.sql) TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:57:52 +0000 (0:00:00.120) 0:02:47.465 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:57:53 +0000 (0:00:00.068) 0:02:47.533 ****** fatal: [sut]: FAILED! => { "assertion": "mssql_password is not none", "changed": false, "evaluated_to": false } MSG: You must define the mssql_password variable because MSSQL requires the sa user to authenticate to input SQL files. TASK [Assert that the role failed with mssql_password not defined] ************* Wednesday 31 August 2022 10:57:53 +0000 (0:00:00.083) 0:02:47.616 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Enable FTS and verify that it works when inputting post script] ********** Wednesday 31 August 2022 10:57:53 +0000 (0:00:00.073) 0:02:47.690 ****** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 10:57:53 +0000 (0:00:00.212) 0:02:47.902 ****** 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 10:57:53 +0000 (0:00:00.087) 0:02:47.990 ****** ok: [sut] TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** Wednesday 31 August 2022 10:57:53 +0000 (0:00:00.484) 0:02:48.474 ****** 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 10:57:54 +0000 (0:00:00.115) 0:02:48.589 ****** 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 10:57:54 +0000 (0:00:00.072) 0:02:48.662 ****** 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 10:57:54 +0000 (0:00:00.069) 0:02:48.732 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated accept_microsoft_sql_server_2019_standard_eula fact] *** Wednesday 31 August 2022 10:57:54 +0000 (0:00:00.060) 0:02:48.792 ****** 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 10:57:54 +0000 (0:00:00.060) 0:02:48.852 ****** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** Wednesday 31 August 2022 10:57:54 +0000 (0:00:00.060) 0:02:48.912 ****** 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 10:57:54 +0000 (0:00:00.060) 0:02:48.973 ****** 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 10:57:54 +0000 (0:00:00.093) 0:02:49.067 ****** 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 10:57:54 +0000 (0:00:00.089) 0:02:49.157 ****** 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 10:57:54 +0000 (0:00:00.133) 0:02:49.290 ****** 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 10:57:54 +0000 (0:00:00.074) 0:02:49.364 ****** 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 10:57:54 +0000 (0:00:00.075) 0:02:49.439 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Gather package facts] ************************* Wednesday 31 August 2022 10:57:54 +0000 (0:00:00.073) 0:02:49.513 ****** 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 10:57:56 +0000 (0:00:01.588) 0:02:51.101 ****** 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 10:57:56 +0000 (0:00:00.074) 0:02:51.176 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Update all packages from SQL Server 2017 repo] *** Wednesday 31 August 2022 10:57:57 +0000 (0:00:00.591) 0:02:51.768 ****** 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 10:57:57 +0000 (0:00:00.122) 0:02:51.890 ****** 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 10:57:57 +0000 (0:00:00.076) 0:02:51.967 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure the mssql-server package] ************** Wednesday 31 August 2022 10:57:57 +0000 (0:00:00.084) 0:02:52.052 ****** 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 10:57:59 +0000 (0:00:01.797) 0:02:53.849 ****** 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 10:57:59 +0000 (0:00:00.056) 0:02:53.905 ****** 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.007791", "end": "2022-08-31 10:57:59.619829", "rc": 0, "start": "2022-08-31 10:57:59.612038" } STDOUT: /var/opt/mssql/log/errorlog TASK [linux-system-roles.mssql : Gather system services facts] ***************** Wednesday 31 August 2022 10:57:59 +0000 (0:00:00.286) 0:02:54.192 ****** 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 10:58:11 +0000 (0:00:12.065) 0:03:06.257 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set up MSSQL] ********************************* Wednesday 31 August 2022 10:58:11 +0000 (0:00:00.202) 0:03:06.460 ****** 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 10:58:12 +0000 (0:00:00.088) 0:03:06.549 ****** 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 10:58:13 +0000 (0:00:01.782) 0:03:08.332 ****** ok: [sut] => { "changed": false, "enabled": true, "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:47:46 UTC", "ActiveEnterTimestampMonotonic": "15528353", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target systemd-sysctl.service dbus.service systemd-journald.socket system.slice sysinit.target network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:47:45 UTC", "AssertTimestampMonotonic": "14248603", "Before": "multi-user.target shutdown.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 10:47:45 UTC", "ConditionTimestampMonotonic": "14248601", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target auto-cpufreq.service cpupower.service tlp.service power-profiles-daemon.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": "746", "ExecMainStartTimestamp": "Wed 2022-08-31 10:47:45 UTC", "ExecMainStartTimestampMonotonic": "14250157", "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 10:47:45 UTC", "InactiveExitTimestampMonotonic": "14250239", "InvocationID": "1e8d82d485cb44089825b62ce0e72d22", "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": "746", "MemoryAccounting": "yes", "MemoryCurrent": "24305664", "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": "dbus.socket dbus.service system.slice polkit.service sysinit.target", "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 10:47:46 UTC", "StateChangeTimestampMonotonic": "15528353", "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 10:47:46 UTC", "WatchdogTimestampMonotonic": "15528349", "WatchdogUSec": "0" } } TASK [linux-system-roles.mssql : Get the active Tuned profiles] **************** Wednesday 31 August 2022 10:58:14 +0000 (0:00:00.461) 0:03:08.794 ****** ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "active" ], "delta": "0:00:00.145749", "end": "2022-08-31 10:58:14.642884", "rc": 0, "start": "2022-08-31 10:58:14.497135" } 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 10:58:14 +0000 (0:00:00.421) 0:03:09.216 ****** 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 10:58:14 +0000 (0:00:00.057) 0:03:09.273 ****** 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 10:58:14 +0000 (0:00:00.055) 0:03:09.329 ****** 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 10:58:14 +0000 (0:00:00.055) 0:03:09.384 ****** 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 10:58:15 +0000 (0:00:00.350) 0:03:09.735 ****** 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 10:58:17 +0000 (0:00:01.798) 0:03:11.534 ****** 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 10:58:17 +0000 (0:00:00.100) 0:03:11.634 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "687611904", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Check if a custom tcpport setting exist] ****** Wednesday 31 August 2022 10:58:17 +0000 (0:00:00.463) 0:03:12.097 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003811", "end": "2022-08-31 10:58:17.815814", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:58:17.812003" } MSG: non-zero return code TASK [linux-system-roles.mssql : Check if a custom ipaddress setting exist] **** Wednesday 31 August 2022 10:58:17 +0000 (0:00:00.289) 0:03:12.387 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^ipaddress = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.004093", "end": "2022-08-31 10:58:18.106885", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:58:18.102792" } MSG: non-zero return code TASK [linux-system-roles.mssql : Set a fact with a password query] ************* Wednesday 31 August 2022 10:58:18 +0000 (0:00:00.291) 0:03:12.678 ****** 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 10:58:18 +0000 (0:00:00.225) 0:03:12.904 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-Q", "SELECT @@VERSION" ], "delta": "0:00:00.030974", "end": "2022-08-31 10:58:18.653308", "rc": 0, "start": "2022-08-31 10:58:18.622334" } 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 10:58:18 +0000 (0:00:00.323) 0:03:13.227 ****** 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 10:58:18 +0000 (0:00:00.070) 0:03:13.298 ****** 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 10:58:18 +0000 (0:00:00.066) 0:03:13.364 ****** TASK [linux-system-roles.mssql : Check if the set edition matches the existing edition] *** Wednesday 31 August 2022 10:58:18 +0000 (0:00:00.054) 0:03:13.419 ****** 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 10:58:18 +0000 (0:00:00.064) 0:03:13.483 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Change the edition of MSSQL] ****************** Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.064) 0:03:13.548 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the IP address setting] ************* Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.062) 0:03:13.610 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Register the previous tcpport setting] ******** Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.066) 0:03:13.676 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Open the 1433 TCP port] ************************************************** Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.074) 0:03:13.751 ****** 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 10:58:19 +0000 (0:00:00.074) 0:03:13.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 tcpport setting] ************** Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.086) 0:03:13.912 ****** ok: [sut] => { "changed": false, "cmd": [ "grep", "^tcpport = ", "/var/opt/mssql/mssql.conf" ], "delta": "0:00:00.003965", "end": "2022-08-31 10:58:19.649987", "failed_when_result": false, "rc": 1, "start": "2022-08-31 10:58:19.646022" } MSG: non-zero return code TASK [linux-system-roles.mssql : Configure the network tcpport setting] ******** Wednesday 31 August 2022 10:58:19 +0000 (0:00:00.308) 0:03:14.221 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql/bin/mssql-conf", "set", "network.tcpport", "1433" ], "delta": "0:00:00.142676", "end": "2022-08-31 10:58:20.167894", "failed_when_result": false, "rc": 0, "start": "2022-08-31 10:58:20.025218" } 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 10:58:20 +0000 (0:00:00.529) 0:03:14.751 ****** 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 10:58:20 +0000 (0:00:00.058) 0:03:14.810 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the sqlagent setting] *************** Wednesday 31 August 2022 10:58:20 +0000 (0:00:00.083) 0:03:14.894 ****** 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 10:58:20 +0000 (0:00:00.070) 0:03:14.964 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: mssql-server-fts-15.0.4249.2-1.x86_64" ] } TASK [linux-system-roles.mssql : Ensure the powershell package] **************** Wednesday 31 August 2022 10:58:48 +0000 (0:00:28.152) 0:03:43.117 ****** 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 10:58:48 +0000 (0:00:00.137) 0:03:43.255 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the hadrenabled setting] ************ Wednesday 31 August 2022 10:58:48 +0000 (0:00:00.063) 0:03:43.318 ****** 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 10:58:48 +0000 (0:00:00.068) 0:03:43.387 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set the 3979 traceflag] *********************** Wednesday 31 August 2022 10:58:48 +0000 (0:00:00.062) 0:03:43.450 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the 3979 traceflag] ********************* Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.068) 0:03:43.518 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the alternatewritethrough setting] *** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.064) 0:03:43.583 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the writethrough setting] *********** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.063) 0:03:43.646 ****** 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 10:58:49 +0000 (0:00:00.061) 0:03:43.708 ****** skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } skipping: [sut] => (item=None) => { "ansible_loop_var": "item", "changed": false, "item": null, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlscert setting] **************** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.074) 0:03:43.782 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlskey setting] ***************** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.061) 0:03:43.844 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the tlsprotocols setting] *********** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.063) 0:03:43.907 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure the forceencryption setting] ******** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.060) 0:03:43.968 ****** 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 10:58:49 +0000 (0:00:00.066) 0:03:44.035 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set host variables] *************************** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.073) 0:03:44.108 ****** 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 10:58:49 +0000 (0:00:00.131) 0:03:44.239 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.073) 0:03:44.313 ****** 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 10:58:49 +0000 (0:00:00.078) 0:03:44.391 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:58:49 +0000 (0:00:00.075) 0:03:44.466 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Remove certificate from SQL Server] *********** Wednesday 31 August 2022 10:58:50 +0000 (0:00:00.075) 0:03:44.542 ****** 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 10:58:50 +0000 (0:00:00.073) 0:03:44.616 ****** 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 10:58:50 +0000 (0:00:00.087) 0:03:44.703 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create and back up certificate] *************** Wednesday 31 August 2022 10:58:50 +0000 (0:00:00.074) 0:03:44.778 ****** 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 10:58:50 +0000 (0:00:00.074) 0:03:44.852 ****** 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 10:58:50 +0000 (0:00:00.085) 0:03:44.938 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the] *********************************** Wednesday 31 August 2022 10:58:50 +0000 (0:00:00.084) 0:03:45.022 ****** 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 10:58:50 +0000 (0:00:00.076) 0:03:45.098 ****** 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 10:58:50 +0000 (0:00:00.076) 0:03:45.175 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:58:50 +0000 (0:00:00.074) 0:03:45.250 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Back up and replicate databases] ************** Wednesday 31 August 2022 10:58:50 +0000 (0:00:00.078) 0:03:45.328 ****** 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 10:58:50 +0000 (0:00:00.132) 0:03:45.461 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable the hadrenabled setting] *************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.075) 0:03:45.537 ****** 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 10:58:51 +0000 (0:00:00.073) 0:03:45.611 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Enable AlwaysOn Health events] **************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.074) 0:03:45.685 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create master key encryption] ***************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.075) 0:03:45.760 ****** 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 10:58:51 +0000 (0:00:00.075) 0:03:45.836 ****** 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 10:58:51 +0000 (0:00:00.083) 0:03:45.920 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Restore certificate] ************************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.074) 0:03:45.994 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Configure database mirroring endpoints] ******* Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.075) 0:03:46.070 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Create the login] **************************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.076) 0:03:46.147 ****** 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 10:58:51 +0000 (0:00:00.073) 0:03:46.221 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Grant permissions to the login] ************** Wednesday 31 August 2022 10:58:51 +0000 (0:00:00.076) 0:03:46.297 ****** 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 10:58:51 +0000 (0:00:00.083) 0:03:46.381 ****** 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 10:58:51 +0000 (0:00:00.082) 0:03:46.463 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run ha_cluster to configure pacemaker] *********************************** Wednesday 31 August 2022 10:58:52 +0000 (0:00:00.074) 0:03:46.538 ****** 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 10:58:52 +0000 (0:00:00.126) 0:03:46.664 ****** 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 10:58:52 +0000 (0:00:00.075) 0:03:46.740 ****** ok: [sut] => { "changed": false } TASK [linux-system-roles.mssql : Flush handlers prior to inputting post SQL scripts] *** Wednesday 31 August 2022 10:58:52 +0000 (0:00:00.380) 0:03:47.121 ****** RUNNING HANDLER [linux-system-roles.mssql : Restart the mssql-server service] *** Wednesday 31 August 2022 10:58:52 +0000 (0:00:00.000) 0:03:47.121 ****** changed: [sut] => { "changed": true, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ActiveEnterTimestampMonotonic": "523875809", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:56:14 UTC", "AssertTimestampMonotonic": "523874298", "Before": "multi-user.target shutdown.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 10:56:14 UTC", "ConditionTimestampMonotonic": "523874296", "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": "6427", "ExecMainStartTimestamp": "Wed 2022-08-31 10:56:14 UTC", "ExecMainStartTimestampMonotonic": "523875692", "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 10:56:14 UTC", "InactiveExitTimestampMonotonic": "523875809", "InvocationID": "163f891f8ca14097af576e25265eade5", "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": "6427", "MemoryAccounting": "yes", "MemoryCurrent": "694890496", "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 -.mount sysinit.target", "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 10:56:14 UTC", "StateChangeTimestampMonotonic": "523875809", "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": "129", "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 10:56:14 UTC", "WatchdogTimestampMonotonic": "523875805", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Post-input SQL scripts to SQL Server] ********* Wednesday 31 August 2022 10:58:53 +0000 (0:00:01.219) 0:03:48.341 ****** included: /WORKDIR/dist-git-mssql-input-multiple-sql-scripts-QBRTGp/tests/roles/linux-system-roles.mssql/tasks/input_sql_file.yml for sut => (item=verify_fts.sql) TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_input_file variable] *** Wednesday 31 August 2022 10:58:53 +0000 (0:00:00.121) 0:03:48.462 ****** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_input_file": "" }, "changed": false } TASK [linux-system-roles.mssql : Verify that the mssql_password variable is defined] *** Wednesday 31 August 2022 10:58:54 +0000 (0:00:00.071) 0:03:48.533 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Create a tempfile for the SQL file on the host] *** Wednesday 31 August 2022 10:58:54 +0000 (0:00:00.080) 0:03:48.614 ****** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.n48nruj0", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Copy the verify_fts.sql file to the host] ***** Wednesday 31 August 2022 10:58:54 +0000 (0:00:00.380) 0:03:48.994 ****** ok: [sut] => { "changed": false, "checksum": "7565e388faf93cadaf62fa3ea5e59a05adb98cd8", "dest": "/tmp/ansible.n48nruj0", "gid": 0, "group": "root", "md5sum": "c9efe6db25bca7b55ddd3508d732934c", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 154, "src": "/root/.ansible/tmp/ansible-tmp-1661943534.6489608-6855-177900047421076/source", "state": "file", "uid": 0 } TASK [linux-system-roles.mssql : Generate the verify_fts.sql template on the host] *** Wednesday 31 August 2022 10:58:55 +0000 (0:00:01.098) 0:03:50.093 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Ensure that the mssql-server service is started] *** Wednesday 31 August 2022 10:58:55 +0000 (0:00:00.062) 0:03:50.155 ****** ok: [sut] => { "changed": false, "name": "mssql-server", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-31 10:58:53 UTC", "ActiveEnterTimestampMonotonic": "682694649", "ActiveExitTimestamp": "Wed 2022-08-31 10:58:53 UTC", "ActiveExitTimestampMonotonic": "681994557", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target auditd.service system.slice -.mount", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-31 10:58:53 UTC", "AssertTimestampMonotonic": "682692806", "Before": "multi-user.target shutdown.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 10:58:53 UTC", "ConditionTimestampMonotonic": "682692804", "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": "9580", "ExecMainStartTimestamp": "Wed 2022-08-31 10:58:53 UTC", "ExecMainStartTimestampMonotonic": "682694579", "ExecMainStatus": "0", "ExecStart": "{ path=/opt/mssql/bin/sqlservr ; argv[]=/opt/mssql/bin/sqlservr ; ignore_errors=no ; start_time=[Wed 2022-08-31 10:58:53 UTC] ; stop_time=[n/a] ; pid=9580 ; 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 10:58:53 UTC", "InactiveEnterTimestampMonotonic": "682691114", "InactiveExitTimestamp": "Wed 2022-08-31 10:58:53 UTC", "InactiveExitTimestampMonotonic": "682694649", "InvocationID": "cf93963b6cd94dbdbfaab7d3c31b395b", "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": "9580", "MemoryAccounting": "yes", "MemoryCurrent": "381468672", "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 -.mount sysinit.target", "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 10:58:53 UTC", "StateChangeTimestampMonotonic": "682694649", "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": "73", "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 10:58:53 UTC", "WatchdogTimestampMonotonic": "682694646", "WatchdogUSec": "0", "WorkingDirectory": "/var/opt/mssql" } } TASK [linux-system-roles.mssql : Wait for mssql-server to prepare for client connections] *** Wednesday 31 August 2022 10:58:56 +0000 (0:00:00.686) 0:03:50.842 ****** ok: [sut] => { "changed": false, "elapsed": 0, "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": 9577, "state": "file", "uid": 990 } TASK [linux-system-roles.mssql : Prepare MSSQL and facts for logging in] ******* Wednesday 31 August 2022 10:58:56 +0000 (0:00:00.462) 0:03:51.304 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Input verify_fts.sql with the sqlcmd command] *** Wednesday 31 August 2022 10:58:56 +0000 (0:00:00.068) 0:03:51.372 ****** ok: [sut] => { "changed": false, "cmd": [ "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "p@55w0rD", "-i", "/tmp/ansible.n48nruj0", "-b" ], "delta": "0:00:02.583578", "end": "2022-08-31 10:58:59.762318", "rc": 0, "start": "2022-08-31 10:58:57.178740" } STDOUT: ------------------------------- Full-Text Search is enabled (1 rows affected) TASK [linux-system-roles.mssql : Print the output of the sqlcmd command for verify_fts.sql if not empty] *** Wednesday 31 August 2022 10:58:59 +0000 (0:00:02.970) 0:03:54.343 ****** ok: [sut] => { "__mssql_sqlcmd_input_file.stdout_lines": [ " ", "-------------------------------", "Full-Text Search is enabled ", "", "(1 rows affected)" ] } TASK [linux-system-roles.mssql : Remove the tempfile] ************************** Wednesday 31 August 2022 10:58:59 +0000 (0:00:00.097) 0:03:54.440 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Fail because the Input with sqlcmd task failed] *** Wednesday 31 August 2022 10:58:59 +0000 (0:00:00.062) 0:03:54.502 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert the latest script invocation resulted in no changes] ************** Wednesday 31 August 2022 10:59:00 +0000 (0:00:00.096) 0:03:54.599 ****** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=179 changed=13 unreachable=0 failed=0 skipped=348 rescued=2 ignored=0 Wednesday 31 August 2022 10:59:00 +0000 (0:00:00.106) 0:03:54.705 ****** =============================================================================== linux-system-roles.mssql : Ensure the mssql-server package ------------- 53.42s linux-system-roles.mssql : Ensure the mssql-server-fts package --------- 28.15s linux-system-roles.mssql : Gather system services facts ---------------- 12.07s linux-system-roles.mssql : Set up MSSQL --------------------------------- 7.65s linux-system-roles.mssql : Gather system services facts ----------------- 5.06s linux-system-roles.mssql : Gather system services facts ----------------- 5.06s linux-system-roles.mssql : Gather system services facts ----------------- 5.03s linux-system-roles.mssql : Ensure that SQL Server client tools are installed --- 4.93s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 3.98s linux-system-roles.mssql : Input verify_fts.sql with the sqlcmd command --- 2.97s linux-system-roles.mssql : Gather system services facts ----------------- 2.22s linux-system-roles.mssql : Attempt to add mssql to the list of Tuned profiles --- 1.91s linux-system-roles.mssql : Gather package facts ------------------------- 1.86s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.85s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.80s linux-system-roles.mssql : Ensure that SQL Server client tools are installed --- 1.80s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.80s linux-system-roles.mssql : Ensure the mssql-server package -------------- 1.79s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 1.79s linux-system-roles.mssql : Ensure that the tuned-profiles-mssql package is installed --- 1.79s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---