-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Option to configure environment variables
- Loading branch information
1 parent
03285b0
commit 55869cd
Showing
6 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Service] | ||
EnvironmentFile=/etc/default/dovecot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
- name: Create systemd drop in directory | ||
file: | ||
path: /etc/systemd/system/dovecot.service.d/ | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
state: directory | ||
|
||
- name: Copy systemd limits drop in | ||
copy: | ||
src: systemd/system/dovecot.service.d/limits.conf | ||
dest: /etc/systemd/system/dovecot.service.d/limits.conf | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: | ||
- Reload systemd | ||
- Restart dovecot | ||
|
||
- name: Copy environment file | ||
copy: | ||
content: "{{ dovecot_systemd_environment }}" | ||
dest: /etc/default/dovecot | ||
owner: root | ||
group: root | ||
mode: 0640 | ||
notify: | ||
- Reload systemd | ||
- Restart dovecot | ||
|
||
- name: Copy systemd environment drop in | ||
copy: | ||
src: systemd/system/dovecot.service.d/environment.conf | ||
dest: /etc/systemd/system/dovecot.service.d/environment.conf | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: | ||
- Reload systemd | ||
- Restart dovecot |
This file was deleted.
Oops, something went wrong.