-
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.
Split user/logging tasks to separate task files (#22)
* Split user/logging tasks to separate task files * Remove root package install from makefile
- Loading branch information
1 parent
0b8f073
commit 045a897
Showing
4 changed files
with
28 additions
and
25 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,10 @@ | ||
--- | ||
- name: Configure logging | ||
ansible.builtin.copy: | ||
dest: "{{ docker_log_conf_file }}" | ||
content: "{{ docker_log_conf | to_nice_json(indent=2) }}" | ||
group: root | ||
owner: root | ||
mode: 0644 | ||
notify: restart docker service | ||
when: docker_log_conf_manage |
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,12 @@ | ||
--- | ||
- name: Manage docker groups | ||
ansible.builtin.group: | ||
name: "{{ docker_group }}" | ||
when: docker_group_manage | ||
|
||
- name: Manage docker users | ||
ansible.builtin.user: | ||
append: true | ||
groups: "{{ docker_group }}" | ||
name: "{{ docker_user }}" | ||
when: docker_user_manage |