Another fix for apparmor, tunables home (ensure replacement). Better naming for a task.

This commit is contained in:
Emiliano Vavassori 2015-08-20 04:51:42 +02:00
parent 8ebe81d771
commit 45b916f0cb
2 changed files with 3 additions and 4 deletions

View File

@ -71,7 +71,7 @@
- ^auto eth0 - ^auto eth0
- ^iface eth0 - ^iface eth0
- name: Cambio greeter di default - name: 'Cambio sessione di default (gnome-fallback)'
lineinfile: lineinfile:
dest: /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf dest: /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
regexp: "^user-session=ubuntu$" regexp: "^user-session=ubuntu$"

View File

@ -5,11 +5,10 @@
register: cfg_samba register: cfg_samba
- name: Configuro la home per apparmor - name: Configuro la home per apparmor
lineinfile: replace:
dest: /etc/apparmor.d/tunables/home dest: /etc/apparmor.d/tunables/home
regexp: '^@\{HOMEDIRS\}=/home/$' regexp: '^@\{HOMEDIRS\}=/home/$'
line: '@{HOMEDIRS}=/home/ /home/{{ domainshort }}/' replace: '@{HOMEDIRS}=/home/ /home/{{ domainshort }}/'
state: present
sudo: yes sudo: yes
- name: Riavvio samba - name: Riavvio samba