--- - name: Set default Xorg/Wayland keyboard layout become: true copy: src: keyboard dest: /etc/default/keyboard - name: Enable US layout for the console become: true lineinfile: path: /etc/vconsole.conf regexp: KEYMAP=.* line: KEYMAP=us create: yes