Fixing apparmor stuff with domain and NTP.

This commit is contained in:
Emiliano Vavassori 2015-08-20 04:34:13 +02:00
parent 6677131f90
commit d5278f9d06
2 changed files with 17 additions and 0 deletions

View File

@ -8,6 +8,15 @@
sudo: yes
register: cfg_ntp
- name: Permetto a NTP di utilizzare informazioni da winbind
lineinfile:
dest: /etc/apparmor.d/usr.sbin.ntpd
regexp: "^/run/samba/winbindd/pipe"
line: '/run/samba/winbindd/pipe crw,'
insertafter: 'samba/ntp_signd/socket'
state: present
sudo: yes
- name: Riavvio ntp
service: name=ntp state=restarted
sudo: yes

View File

@ -4,6 +4,14 @@
sudo: yes
register: cfg_samba
- name: Configuro la home per apparmor
lineinfile:
dest: /etc/apparmor.d/tunables/home
regexp: '^@\{HOMEDIRS\}=/home/ /home/{{ domainshort }}/$'
line: '^@{HOMEDIRS}=/home/ /home/{{ domainshort }}/'
state: present
sudo: yes
- name: Riavvio samba
shell: restart smbd
sudo: yes