---
- name: Enable dvorak for XOrg libinput
  template:
    src: 40-libinput-dvorak.conf.j2
    dest: /etc/X11/xorg.conf.d/40-libinput-dvorak.conf

- name: Add control-caps dvorak keymap
  copy: src=dvorak-cc.map.gz dest=/usr/share/kbd/keymaps/i386/dvorak/dvorak-cc.map.gz

- name: Enable dvorak-cc for vconsole
  lineinfile: "dest=/etc/vconsole.conf
              regexp=^KEYMAP=
              state=present
              line='KEYMAP=dvorak-cc'"
