--- - name: Include distro-specific variables include_vars: "{{ item }}" with_first_found: - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_version}}.yml" - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml" - "{{ role_path }}/vars/{{ ansible_distribution }}.yml" - name: Install Ubuntu's desktop environment apt: name: "{{ ubuntu_desktop_packages }}" state: present install_recommends: no - name: Copy static files copy: src: files/ dest: / become: yes - name: Update dconf command: dconf update - name: Remove ubuntu's snap session file: path: /usr/share/xsessions/ubuntu-communitheme-snap.desktop state: absent - name: Disable gnome-keyring-daemon shell: chmod -x /usr/bin/gnome-keyring-daemon