---
- name: include variables for xmodmap
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ ansible_hostname }}.yml"
    - "default.yml"

- name: link xmodmap configuration file
  file:
    src: "{{ dotfiles_dir }}/{{ xmodmap_file }}"
    path: "{{ user_home }}/.Xmodmap"
    state: link

---
- name: include variables for xmodmap
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ ansible_hostname }}.yml"
    - "default.yml"

- name: link xmodmap configuration file
  file:
    src: "{{ dotfiles_dir }}/{{ xmodmap_file }}"
    path: "{{ '~/.Xmodmap' | expanduser }}"
    state: link

Fix bug with a missing variable
Fix bug with a missing variable
