File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Path to the environment file
4
4
environment_file : /etc/environment
5
+ # The environment file owner
6
+ environment_file_owner : root
7
+ # The environment file group
8
+ environment_file_group : root
5
9
# A dictionary of config parameters i.e
6
10
#
7
11
# environment_config:
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Ensure file exists
4
- file : path={{environment_file}} owner=www-data group=www-data state=touch
4
+ file :
5
+ path : " {{ environment_file }}"
6
+ owner : " {{ environment_file_owner }}"
7
+ group : " {{ environment_file_group }}"
8
+ state : touch
5
9
6
10
- name : Remove previous values
7
11
lineinfile :
8
12
dest : " {{ environment_file }}"
9
13
regexp : ' ^{{ item.key | upper }}'
10
14
state : absent
11
- with_dict : " {{environment_config}}"
15
+ with_dict : " {{ environment_config }}"
12
16
13
17
- name : Configuring environment
14
18
lineinfile :
15
19
dest : " {{ environment_file }}"
16
20
line : " {{ item.key | upper }}='{{ item.value }}'"
17
- with_dict : " {{environment_config}}"
18
-
21
+ with_dict : " {{ environment_config }}"
You can’t perform that action at this time.
0 commit comments