e30chris / Packer-Ansible-Demo

Demo of Ansible targeting Linux and Windows desired configuration state.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packer Ansible Windows

Demo of Packer calling Ansible to build a Windows GCE VM Image.

Notes:

Windows Host Prep

Ansible docs link:

https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup

$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"

(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)

powershell.exe -ExecutionPolicy ByPass -File $file

Linux Host Prep

sudo apt-get install ansible wget unzip

About

Demo of Ansible targeting Linux and Windows desired configuration state.

License:GNU General Public License v3.0


Languages

Language:HTML 100.0%