Browse Source

user environment variable

master
parent
commit
5aa49f7396
2 changed files with 13 additions and 0 deletions
  1. +10
    -0
      tasks/main.yaml
  2. +3
    -0
      templates/env.j2

+ 10
- 0
tasks/main.yaml View File

@@ -32,3 +32,13 @@
name: jack.service
state: started
enabled: true

- name: systemd user environment directory
file:
path: /etc/environment.d
state: directory

- name: jack user environment variables
template:
src: env.j2
dest: /etc/environment.d/jack.conf

+ 3
- 0
templates/env.j2 View File

@@ -0,0 +1,3 @@
{{ansible_managed|comment}}

JACK_PROMISCUOUS_SERVER=jack

Loading…
Cancel
Save