diff --git a/roles/common/files/com.canonical.indicator.session.gschema.override b/roles/common/files/com.canonical.indicator.session.gschema.override new file mode 100644 index 0000000..4ca5612 --- /dev/null +++ b/roles/common/files/com.canonical.indicator.session.gschema.override @@ -0,0 +1,2 @@ +[com.canonical.indicator.session] +user-show-menu=false diff --git a/roles/common/files/org.gnome.nautilus.desktop.gschema.override b/roles/common/files/org.gnome.nautilus.desktop.gschema.override new file mode 100644 index 0000000..1738faa --- /dev/null +++ b/roles/common/files/org.gnome.nautilus.desktop.gschema.override @@ -0,0 +1,2 @@ +[org.gnome.nautilus.desktop] +volumes-visible=true diff --git a/roles/common/tasks/glib2.yml b/roles/common/tasks/glib2.yml new file mode 100644 index 0000000..906198a --- /dev/null +++ b/roles/common/tasks/glib2.yml @@ -0,0 +1,20 @@ +--- + +- name: Disabilito la visualizzazione utenti in GNOME + copy: + src: com.canonical.indicator.session.gschema.override + dest: /usr/share/glib-2.0/schemas/com.canonical.indicator.session.gschema.override + backup: yes + register: cfg_glib_users + +- name: Attivo visibilità dei dischi montati sul desktop + copy: + src: org.gnome.nautilus.desktop.gschema.override + dest: /usr/share/glib-2.0/schemas/org.gnome.nautilus.desktop.gschema.override + backup: yes + register: cfg_glib_mounted + +- name: Ricompilo gli schemi glib2 + shell: glib-compile-schemas --strict /usr/share/glib-2.0/schemas/ + sudo: yes + when: cfg_glib_users|changed or cfg_glib_mounted|changed diff --git a/roles/common/tasks/gui-customizations.yml b/roles/common/tasks/gui-customizations.yml index 9094bda..b6a4abb 100644 --- a/roles/common/tasks/gui-customizations.yml +++ b/roles/common/tasks/gui-customizations.yml @@ -9,11 +9,18 @@ - ^auto eth0 - ^iface eth0 -- name: Riavvio servizio NetworkManager - service: name=network-manager state=restarted - - name: Cambio greeter di default lineinfile: dest: /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf regexp: "^user-session=ubuntu$" line: "user-session=gnome-fallback" + +- name: Altre impostazioni lightdm + lineinfile: + dest: /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf + regexp: "{{ item }}" + line: "{{ item }}" + with_items: + - "allow-guest=false" + - "greeter-hide-users=true" + - "greeter-show-manual-login=true" diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index d19acae..cc4aa30 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -6,3 +6,8 @@ tags: - common - gui-customizations + +- include: glib2.yml + tags: + - common + - glib2