Skip to content

Commit

Permalink
Improved permission setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucab85 committed Apr 6, 2021
1 parent 09492d0 commit d6bec40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
template:
src: motd.j2
dest: "{{ motd_file }}"
owner: "{{ motd_owner }}"
group: "{{ motd_group }}"
mode: "{{ motd_mode }}"
setype: "{{ motd_setype }}"
4 changes: 4 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
---
motd_file: /etc/motd
motd_owner: root
motd_group: root
motd_mode: 0644
motd_setype: "system_u"

0 comments on commit d6bec40

Please sign in to comment.