Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created December 6, 2019 11:24
Show Gist options
  • Save jonathanmedd/ae3f4bc190dcfc111868de08324e7c2e to your computer and use it in GitHub Desktop.
Save jonathanmedd/ae3f4bc190dcfc111868de08324e7c2e to your computer and use it in GitHub Desktop.
_12_environment_variables
---
- 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