Fixing apparmor stuff with domain and NTP.
This commit is contained in:
parent
6677131f90
commit
d5278f9d06
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user