CSC Ansible Playbooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ansible-playbooks/roles/general-use-gui/tasks/main.yml

277 lines
6.5 KiB

---
# should make sure that lightdm is the default
- name: Install X Server and utils
apt: name={{ item }} state=latest
with_items:
- xorg
- xsel
- gksu
- arandr
- redshift
- name: Install Terminal emulators
apt: name={{ item }} state=latest
with_items:
- rxvt
- rxvt-unicode-256color
- gnome-terminal
- xfce4-terminal
- konsole
- yakuake
- name: Install Web Browsers
apt: name={{ item }} state=latest
with_items:
- firefox
- google-chrome-stable
- chromium-browser
- epiphany-browser
- midori
- flashplugin-installer
- name: ensure directories exist
file: path={{ item }} state=directory
with_items:
- /etc/opt/chrome/policies/managed/
- /etc/firefox
- name: copy chrome managed policy
copy: src={{ item.src }} dest={{ item.dest }} backup=no
with_items:
- { src: 'chrome-kerberos.json', dest: '/etc/opt/chrome/policies/managed/csc-kerberos.json' }
- { src: 'firefox-kerberos.js', dest: '/etc/firefox/syspref.js' }
- name: Install Mail Clients
apt: name={{ item }} state=latest
with_items:
- claws-mail
- thunderbird
- empathy
- name: Install Mail Clients
apt: name={{ item }} state=latest
with_items:
- pidgin
- pidgin-otr
- name: Install Office Applications
apt: name={{ item }} state=latest
with_items:
- scribus
- gimp
- xfig
- dia
- inkscape
- libreoffice
- fontforge
- xpdf
- evince
- djview4
- name: Install xubuntu-desktop
apt: name={{ item }} state=latest
with_items:
- xubuntu-desktop
- name: Install Window Managers
apt: name={{ item }} state=latest
with_items:
- xmonad
- libghc-xmonad-contrib-dev
- stumpwm
- wmii
- awesome
- openbox
- openbox-gnome-session
- openbox-kde-session
- i3-wm
- name: Install KDE Plasma-desktop
apt: name={{ item }} state=latest
with_items:
- plasma-desktop
- name: Install unity
apt: name={{ item }} state=latest
with_items:
- unity
- name: Install gnome
apt: name={{ item }} state=latest
with_items:
- gnome
- name: Install lxde
apt: name={{ item }} state=latest
with_items:
- lxde
- lxde-common
- name: Install mate
apt: name={{ item }} state=latest
with_items:
- mate-desktop-environment
- name: Install cinnamon
apt: name={{ item }} state=latest
with_items:
- cinnamon-desktop-environment
- name: Install widgets
apt: name={{ item }} state=latest
with_items:
- xmobar
- i3status
- i3blocks
- dzen2
- dunst
- name: Install lockers
apt: name={{ item }} state=latest
with_items:
- i3lock
- light-locker
- name: WORKAROUND for login failure - install dbus-user-session
apt: name=dbus-user-session state=latest
- name: Disable xscreensaver for xfce4 users
command: mv /etc/xdg/autostart/xscreensaver.desktop /etc/xdg/autostart/xscreensaver.desktop.disabled
args:
creates: /etc/xdg/autostart/xscreensaver.desktop.disabled
- name: copy over xsession.desktop and xsession-reset.desktop
copy: src={{ item.src }} dest={{ item.dest }}
with_items:
- { src: 'xsession.desktop', dest: '/usr/share/xsessions/xsession.desktop' }
- { src: 'xsession-reset.desktop', dest: '/usr/share/xsessions/xsession-reset.desktop' }
- { src: 'reset_xsession.sh', dest: '/usr/local/bin/reset_xsession.sh' }
- file: path=/usr/local/bin/reset_xsession.sh owner=root group=root mode=755
- name: Disable xsessions
shell: rename 's/$/\.disabled/' /usr/share/xsessions/*.desktop
- shell: mv /usr/share/xsessions/{{ item }}.desktop.disabled /usr/share/xsessions/{{ item }}.desktop
args:
creates: /usr/share/xsessions/{{ item }}.desktop
removes: /usr/share/xsessions/{{ item }}.desktop.disabled
with_items:
- xsession
- xsession-reset
- name: Copy lightdm config
copy: src={{ item.src }} dest={{ item.dest }}
with_items:
- { src: 'lightdm.conf', dest: '/etc/lightdm/lightdm.conf' }
- { src: 'lightdm-gtk-greeter.conf', dest: '/etc/lightdm/lightdm-gtk-greeter.conf' }
- name: Install fonts
apt: name={{ item }} state=latest
with_items:
- console-setup
- xfonts-terminus
- gsfonts
- gsfonts-x11
- fonts-dejavu
- fonts-opensymbol
- fonts-freefont-ttf
- name: Install editors
apt: name={{ item }} state=latest
with_items:
- vim-gnome
- lyx
- emacs
- emacs24
- name: Install networking tools
apt: name={{ item }} state=latest
with_items:
- wireshark
- clusterssh
- name: Install printing/postscript tools
apt: name={{ item }} state=latest
with_items:
- gv
- ghostscript-x
- name: Install math tools
apt: name={{ item }} state=latest
with_items:
- gnuplot-x11
- rocs
- name: Install CAD tools
apt: name={{ item }} state=latest
with_items:
- carmetal
- xtrkcad
- freecad
- pythoncad
- name: Install media tools
apt: name={{ item }} state=latest
with_items:
- pavucontrol
- vlc
- mpv
- cheese
- pavucontrol
- amarok
- audacity
- audacious
- lmms
- k3b
- ardour
- imagemagick
- blender
- name: Install electronics tools
apt: name={{ item }} state=latest
with_items:
- geda
- arduino
- ngspice
- bristol
- cl-rlc
- electric
- gerbv
- gnucap
- gpsim
- gsmc
- gspiceui
- gtkwave
- linsmith
- oregano
- pcb
- pcb-gtk
- tkgate
- xcircuit
- kic
- kicad
- name: Install virtualiztion tools
apt: name={{ item }} state=latest
with_items:
- virtualbox
- virt-manager
- virt-viewer
- name: Install image tools
apt: name={{ item }} state=latest
with_items:
- feh
- hugin
- enblend
- enfuse
- hugin-tools
- gthumb
- eog
- name: Install misc tools
apt: name={{ item }} state=latest
with_items:
- workrave