浏览代码

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

正在加载...
取消
保存