Sha256: 020c494f15f037fd1f9d7e0d00d5997776e0cb3e97d628d276ce88102d91b17d

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cloud-mu-3.5.1 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.5.0 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.4.0 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.3.2 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.3.1 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.3.0 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.2.0 ansible/roles/mu-windows/tasks/main.yml
cloud-mu-3.1.6 ansible/roles/mu-windows/tasks/main.yml