瀏覽代碼

user environment variable

master
父節點
當前提交
5aa49f7396
共有 2 個檔案被更改,包括 13 行新增0 行删除
  1. +10
    -0
      tasks/main.yaml
  2. +3
    -0
      templates/env.j2

+ 10
- 0
tasks/main.yaml 查看文件

@@ -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 查看文件

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

JACK_PROMISCUOUS_SERVER=jack

Loading…
取消
儲存