Created
December 6, 2019 11:24
-
-
Save jonathanmedd/ae3f4bc190dcfc111868de08324e7c2e to your computer and use it in GitHub Desktop.
_12_environment_variables
This file contains 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
--- | |
- hosts: all | |
tasks: | |
- name: Create JAVA_HOME Environment Variable for all users | |
win_environment: | |
state: present | |
name: JAVA_HOME | |
value: 'C:\_jdk12.0' | |
level: machine | |
- name: Add JAVA_HOME to PATH | |
win_path: | |
elements: '%JAVA_HOME%' | |
state: present |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment