Skip to content

Instantly share code, notes, and snippets.

@metalcated
Created February 17, 2020 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metalcated/69ab4a76387b75747243fffcf27c9249 to your computer and use it in GitHub Desktop.
Save metalcated/69ab4a76387b75747243fffcf27c9249 to your computer and use it in GitHub Desktop.
- name: "Create OS Windows Server 2016"
theforeman.foreman.foreman_operatingsystem:
server_url: http://foreman.example.org/xxx
username: admin
password: xxxx
name: windows_2016
release_name: windows_2016
family: Windows
os_family: windows
media: Windows
description: Windows Server 2016
major: 10
minor: 0.2016
password_hash: Base64-Windows
architectures: x64
parameters:
- name: windowsEdition
value: "Windows Server 2016 SERVERSTANDARD"
- name: windowsLicenseKey
value: "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
provisioning_templates: [
"Windows Unattend",
"Windows Install",
"Windows iPXE",
"Windows PXELinux",
"Windows JoinDomain",
"Windows Configure"
]
ptables: ["Windows Whole Disk"]
state: present
# Associate templates wtth OS
- name: "Associate Windows Unattend"
theforeman.foreman.foreman_os_default_template:
server_url: http://foreman.example.org
username: admin
password: xxxx
operatingsystem: "windows"
template_kind: "provision"
provisioning_template: "Windows Unattend"
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment