Fixed dot stuff
This commit is contained in:
parent
f91cbf78e0
commit
a1d5be00f1
2 changed files with 6 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,6 +19,7 @@ rpm-build
|
|||
*.iml
|
||||
#VSCode stuff..
|
||||
.vscode/
|
||||
.favorites.json
|
||||
# Mac OS X stuff...
|
||||
.DS_Store
|
||||
# manpage build stuff...
|
||||
|
|
|
@ -307,12 +307,9 @@ if($gather_subset.Contains('memory')) {
|
|||
if($gather_subset.Contains('platform')) {
|
||||
$win32_cs = Get-LazyCimInstance Win32_ComputerSystem
|
||||
$win32_os = Get-LazyCimInstance Win32_OperatingSystem
|
||||
$domainSuffix = $win32_cs.Domain.Substring($win32_cs.Workgroup.length)
|
||||
$domain_suffix = $win32_cs.Domain.Substring($win32_cs.Workgroup.length)
|
||||
|
||||
if ($domainSuffix -ne "")
|
||||
{s
|
||||
$domainSuffix = ".$domainSuffix"
|
||||
}
|
||||
$domain_suffix = ".$domain_suffix"
|
||||
|
||||
try {
|
||||
$ansible_reboot_pending = Get-PendingRebootStatus
|
||||
|
@ -323,12 +320,12 @@ if($gather_subset.Contains('platform')) {
|
|||
|
||||
$ansible_facts += @{
|
||||
ansible_architecture = $win32_os.OSArchitecture
|
||||
ansible_domain = $domainSuffix
|
||||
ansible_fqdn = ($win32_cs.DNSHostname + "." + $domainSuffix)
|
||||
ansible_domain = $domain_suffix.Substring(1)
|
||||
ansible_fqdn = ($win32_cs.DNSHostname + $domain_suffix)
|
||||
ansible_hostname = $win32_cs.DNSHostname
|
||||
ansible_netbios_name = $win32_cs.Name
|
||||
ansible_kernel = $osversion.Version.ToString()
|
||||
ansible_nodename = ($win32_cs.DNSHostname + "." + $domainSuffix)
|
||||
ansible_nodename = ($win32_cs.DNSHostname + $domain_suffix)
|
||||
ansible_machine_id = Get-MachineSid
|
||||
ansible_owner_contact = ([string] $win32_cs.PrimaryOwnerContact)
|
||||
ansible_owner_name = ([string] $win32_cs.PrimaryOwnerName)
|
||||
|
|
Loading…
Reference in a new issue