Last active
November 5, 2019 17:15
-
-
Save unacceptable/2963cd1800dc9cc12c29e6588c8c46a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Installing Notepad++ | |
| win_package: | |
| path: https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.Installer.x64.exe | |
| arguments: '/S' | |
| product_id: "Notepad++" | |
| state: present | |
| when: ansible_os_family == 'Windows' | |
| - name: Check Path Variable on Windows hosts | |
| win_shell: $Env:Path | |
| register: path | |
| changed_when: False | |
| when: ansible_os_family == 'Windows' | |
| - name: Add Notepad++ to Path Variable on Windows hosts | |
| win_environment: | |
| state: present | |
| name: Path | |
| value: '{{ path.stdout }};C:\Program Files (x86)\Notepad++' | |
| level: machine | |
| when: (path.stdout.find('Notepad++') == -1 ) and | |
| (ansible_os_family == 'Windows') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is perfect but by any chance can we have uninstall yml as well pls.