-
-
Save shadowink/a0aeee534418a0ce7baee859059e76d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No config file found; using defaults | |
10.17.2.149 | SUCCESS => { | |
"ansible_facts": { | |
"ansible_architecture": "64-bit", | |
"ansible_architecture2": "x86_64", | |
"ansible_bios_date": "12/12/2018", | |
"ansible_bios_version": "6.00", | |
"ansible_date_time": { | |
"date": "2020-11-16", | |
"day": "16", | |
"epoch": "1605560592.17679", | |
"epoch_local": "1605542592.17679", | |
"hour": "16", | |
"iso8601": "2020-11-16T21:03:12Z", | |
"iso8601_basic": "20201116T160312176787", | |
"iso8601_basic_short": "20201116T160312", | |
"iso8601_micro": "2020-11-16T21:03:12.176787Z", | |
"minute": "03", | |
"month": "11", | |
"second": "12", | |
"time": "16:03:12", | |
"tz": "Eastern Standard Time", | |
"tz_offset": "-05:00", | |
"weekday": "Monday", | |
"weekday_number": "1", | |
"weeknumber": "45", | |
"year": "2020" | |
}, | |
"ansible_distribution": "Microsoft Windows 10 Enterprise", | |
"ansible_distribution_major_version": "10", | |
"ansible_distribution_version": "10.0.18363.0", | |
"ansible_domain": "AD.MYCOMPANY.COM", | |
"ansible_env": { | |
"ALLUSERSPROFILE": "C:\\ProgramData", | |
"APPDATA": "C:\\Users\\VMADMINACCT\\AppData\\Roaming", | |
"COMPUTERNAME": "WIN-KPC-PACKER", | |
"ComSpec": "C:\\WINDOWS\\system32\\cmd.exe", | |
"CommonProgramFiles": "C:\\Program Files\\Common Files", | |
"CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", | |
"CommonProgramW6432": "C:\\Program Files\\Common Files", | |
"DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", | |
"HOMEDRIVE": "C:", | |
"HOMEPATH": "\\Users\\VMADMINACCT", | |
"LOCALAPPDATA": "C:\\Users\\VMADMINACCT\\AppData\\Local", | |
"LOGONSERVER": "\\\\WIN-KPC-PACKER", | |
"NUMBER_OF_PROCESSORS": "2", | |
"OS": "Windows_NT", | |
"OneDrive": "C:\\Users\\VMADMINACCT\\OneDrive", | |
"PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL", | |
"PROCESSOR_ARCHITECTURE": "AMD64", | |
"PROCESSOR_IDENTIFIER": "AMD64 Family 23 Model 49 Stepping 0, AuthenticAMD", | |
"PROCESSOR_LEVEL": "23", | |
"PROCESSOR_REVISION": "3100", | |
"PROMPT": "$P$G", | |
"PSExecutionPolicyPreference": "Unrestricted", | |
"PSModulePath": "C:\\Users\\VMADMINACCT\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", | |
"PUBLIC": "C:\\Users\\Public", | |
"Path": "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\VMADMINACCT\\AppData\\Local\\Microsoft\\WindowsApps", | |
"ProgramData": "C:\\ProgramData", | |
"ProgramFiles": "C:\\Program Files", | |
"ProgramFiles(x86)": "C:\\Program Files (x86)", | |
"ProgramW6432": "C:\\Program Files", | |
"SystemDrive": "C:", | |
"SystemRoot": "C:\\WINDOWS", | |
"TEMP": "C:\\Users\\ASDCAD~1\\AppData\\Local\\Temp", | |
"TMP": "C:\\Users\\ASDCAD~1\\AppData\\Local\\Temp", | |
"UATDATA": "C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", | |
"USERDOMAIN": "WIN-KPC-PACKER", | |
"USERDOMAIN_ROAMINGPROFILE": "WIN-KPC-PACKER", | |
"USERNAME": "VMADMINACCT", | |
"USERPROFILE": "C:\\Users\\VMADMINACCT", | |
"windir": "C:\\WINDOWS" | |
}, | |
"ansible_fqdn": "win-kpc-packer.cos.is.mycompany.com", | |
"ansible_hostname": "win-kpc-packer", | |
"ansible_interfaces": [ | |
{ | |
"connection_name": "Ethernet0", | |
"default_gateway": "10.17.2.1", | |
"dns_domain": "cos.is.mycompany.com", | |
"interface_index": 8, | |
"interface_name": "Intel(R) 82574L Gigabit Network Connection", | |
"macaddress": "00:50:56:88:67:CC" | |
} | |
], | |
"ansible_ip_addresses": [ | |
"fe80::99af:1a33:3454:cab3%8", | |
"10.17.2.149" | |
], | |
"ansible_kernel": "10.0.18363.0", | |
"ansible_lastboot": "2020-11-16 15:54:33Z", | |
"ansible_machine_id": "S-1-5-21-1079079843-3038588511-3636390517", | |
"ansible_memfree_mb": 6178, | |
"ansible_memtotal_mb": 8192, | |
"ansible_netbios_name": "WIN-KPC-PACKER", | |
"ansible_nodename": "win-kpc-packer.cos.is.mycompany.com", | |
"ansible_os_family": "Windows", | |
"ansible_os_installation_type": "Client", | |
"ansible_os_name": "Microsoft Windows 10 Enterprise", | |
"ansible_os_product_type": "workstation", | |
"ansible_owner_contact": "", | |
"ansible_owner_name": "Mycompany User", | |
"ansible_pagefilefree_mb": 1280, | |
"ansible_pagefiletotal_mb": 1280, | |
"ansible_powershell_version": 5, | |
"ansible_processor": [ | |
"0", | |
"AuthenticAMD", | |
"AMD EPYC 7542 32-Core Processor ", | |
"1", | |
"AuthenticAMD", | |
"AMD EPYC 7542 32-Core Processor " | |
], | |
"ansible_processor_cores": 2, | |
"ansible_processor_count": 2, | |
"ansible_processor_threads_per_core": 0, | |
"ansible_processor_vcpus": 2, | |
"ansible_product_name": "VMware Virtual Platform", | |
"ansible_product_serial": "VMware-42 08 9a 6e f0 a6 45 de-87 5e f5 dd b2 3e 41 7a", | |
"ansible_reboot_pending": true, | |
"ansible_swaptotal_mb": 0, | |
"ansible_system": "Win32NT", | |
"ansible_system_description": "", | |
"ansible_system_vendor": "VMware, Inc.", | |
"ansible_uptime_seconds": 520, | |
"ansible_user_dir": "C:\\Users\\VMADMINACCT", | |
"ansible_user_gecos": "", | |
"ansible_user_id": "VMADMINACCT", | |
"ansible_user_sid": "S-1-5-21-1079079843-3038588511-3636390517-1006", | |
"ansible_virtualization_role": "guest", | |
"ansible_virtualization_type": "VMware", | |
"ansible_win_rm_certificate_expires": "2023-11-15 08:43:10", | |
"ansible_windows_domain": "AD.mycompany.com", | |
"ansible_windows_domain_member": true, | |
"ansible_windows_domain_role": "Member workstation", | |
"gather_subset": [ | |
"all" | |
], | |
"module_setup": true | |
}, | |
"changed": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [ | |
{ | |
"type": "vsphere-clone", | |
"vcenter_server": "vc.mycompany.com", | |
"username": "MYUSER", | |
"password": "MYPASS", | |
"insecure_connection": "true", | |
"datacenter": "MYDC", | |
"host": "esx.mycompany.com", | |
"vm_name": "Win10-packertest-{{isotime \"2006-01-02_15.04\"}}", | |
"datastore": "mydatastore:vmware2_SSD", | |
"template": "win-kpc-packer", | |
"communicator": "winrm", | |
"winrm_use_ssl": "true", | |
"winrm_insecure": "true", | |
"winrm_username": "VMADMINACCT", | |
"winrm_password": "VMADMINPASS", | |
"convert_to_template": "true" | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "ansible", | |
"user": "VMADMINACCT", | |
"use_proxy": false, | |
"extra_arguments": [ | |
"--extra-vars", | |
"ansible_winrm_server_cert_validation=ignore", | |
"ansible_winrm_transport=credssp", | |
"--vault-password-file=vp.txt", | |
"-vv" | |
], | |
"playbook_file": "win10-node-setup.yml" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
hosts: | |
10.17.3.165: | |
ansible_user: VMADMINACCT | |
ansible_password: VMADMINPASS | |
ansible_connection: winrm | |
ansible_winrm_transport: credssp | |
ansible_winrm_server_cert_validation: ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment