forked from azavea/ansible-papertrail
-
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.
Adjust apparmor configuration for rsyslog (#4)
* Adjust apparmor configuration for rsyslog Modify rsyslog profile in apparmor so it can read papertrail PEM file
- Loading branch information
Showing
4 changed files
with
25 additions
and
1 deletion.
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
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,13 @@ | ||
--- | ||
- name: Import local rsyslogd profile to apparmor | ||
ansible.builtin.lineinfile: | ||
path: "{{ apparmor_rsyslogd_profile_path }}" | ||
search_string: '#include <local/usr.sbin.rsyslogd>' | ||
line: ' include <local/usr.sbin.rsyslogd>' | ||
|
||
- name: Allow rsyslogd read Papertrail PEM in apparmor profile | ||
ansible.builtin.lineinfile: | ||
path: "{{ apparmor_rsyslogd_local_profile_path }}" | ||
line: "{{ papertrail_pem_path }} r," | ||
state: present | ||
notify: Reload apparmor |
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