--- # tasks file for gnome - name: Install gnome pkgs community.general.pacman: name: "{{ item }}" state: present with_items: "{{ pacman_gnome }}" when: ansible_os_family == "Archlinux" - name: gdm settings dconf: key: "{{ item.key }}" value: "{{ item.value }}" state: present with_items: "{{ gdm_settings }}" become: true become_user: gdm - name: enable service gdm systemd: name: gdm enabled: yes