chocolatey / chocolatey-ansible

The Chocolatey module collection for Ansible
GNU General Public License v3.0
47 stars 29 forks source link

WIP: Add -NoNewline to the Set-Content call #142

Open opoplawski opened 6 months ago

opoplawski commented 6 months ago

Add -NoNewline to the Set-Content call to avoid adding an extra newline to install.ps1 voiding the signature

Description Of Changes

Set-Content is adding a newline to the end of the install.ps1 file.

This is not PowerShell v2 compliant, so not sure how to handle that.

Motivation and Context

Breaks the signature of the file

Testing

- hosts: windows
  gather_facts: false
  tasks:
    - name: "Install chocolatey"
      win_chocolatey:
        name:
          - chocolatey
        state: latest

Operating Systems Testing

Windows 11 Enterprise

Change Types Made

Change Checklist

Related Issue

Fixes #141