ansible/roles/desktop/tasks/main.yml

75 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-04-11 05:48:13 +00:00
- name: set up keyboard controls
become: true
ansible.builtin.copy:
dest: /etc/default/keyboard
owner: root
group: root
mode: 0644
content: |
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
# managed by ansible
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="ctrl:swapcaps,compose:ralt"
BACKSPACE="guess"
2023-04-13 04:49:58 +00:00
- name: enable passwordless sudo for desktop users
become: true
ansible.builtin.copy:
src: "{{ role_path }}/files/sudoers"
dest: /etc/sudoers
mode: 0440
owner: root
group: root
2023-04-11 05:48:13 +00:00
- name: set up common desktop tools
become: true
ansible.builtin.apt: name={{ item }} state=present
with_items:
- acpitool
- emacs
2023-04-13 04:49:58 +00:00
- mate-terminal
2023-04-11 05:48:13 +00:00
- vim-gtk
- name: set up desktop environments
become: true
ansible.builtin.apt: name={{ item }} state=present
with_items:
- i3
- i3lock
2023-04-13 02:24:13 +00:00
- stumpwm
2023-04-22 09:00:54 +00:00
- ubuntu-mate-desktop
2023-04-11 05:48:13 +00:00
2023-04-13 04:49:58 +00:00
- name: install StumpWM gnome session
become: true
ansible.builtin.copy:
src: "{{ role_path }}/files/stumpwm-gnome.desktop"
dest: /usr/share/xsessions/stumpwm-gnome.desktop
mode: 0644
owner: root
group: root
2023-04-11 05:48:13 +00:00
- name: set up xprogs
become: true
ansible.builtin.apt: name={{ item }} state=present
with_items:
- arandr
- evince
- feh
- firefox
- gparted
- scrot
2023-04-13 04:49:58 +00:00
- thunar
- thunar-archive-plugin
- thunar-font-manager
- thunar-gtkhash
- thunar-vcs-plugin
- thunar-volman
2023-04-11 05:48:13 +00:00
- vlc
2023-04-13 04:49:58 +00:00
- xfce4-places-plugin
- wireshark