Sha256: 105d3f3278acf7f872cbbbb40d499d176bb28637c4326851562c54a8510ffd92

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

---
- name: Install all updates with automatic reboots
  win_updates:
    reboot: yes
    reboot_timeout: 1800

- name: Install git
  win_chocolatey:
    name: git
    state: present

- name: Install ruby
  win_chocolatey:
    name: ruby
    state: present

- name: Install openssh
  win_chocolatey:
    name: openssh
    state: present

- name: "Tell EC2Config to set a random password on next boot (Windows 2012)"
  when: ((ansible_facts['distribution_major_version'] | int) < 10 and mu_build_image is defined and mu_build_image == True)
  win_copy:
    src: config.xml
    dest: "c:/Program Files/Amazon/EC2ConfigService/Settings/config.xml"

- name: "Tell EC2Launch to set a random password (Windows 2016+)"
  when: ((ansible_facts['distribution_major_version'] | int) >= 10 and mu_build_image is defined and mu_build_image == True)
  win_copy:
    src: LaunchConfig.json
    dest: "c:/ProgramData/Amazon/EC2-Windows/Launch/Config/LaunchConfig.json"

- name: "Tell EC2Launch to run on next boot (Windows 2016+)"
  when: ((ansible_facts['distribution_major_version'] | int) >= 10 and mu_build_image is defined and mu_build_image == True)
  win_shell: C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule

- name: Allow RDP to use local user authentication
  win_shell: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloud-mu-3.6.5 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.6.4 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.6.3 ansible/roles/mu-windows/tasks/main.yml