fix some errors noticed at deploy

This commit is contained in:
Simon Bruder 2018-03-17 20:56:09 +00:00 committed by jalr
parent 3375c950df
commit fbfb2cdc6e
4 changed files with 32 additions and 68 deletions

View file

@ -1,5 +1,5 @@
---
- name: install java
apt:
name: openjdk-jre
name: openjdk-8-jre
state: present

View file

@ -12,3 +12,8 @@
- vim-nox
- rsync
- grub2
- pciutils
- usbutils
- strace
- net-tools
- lshw

View file

@ -1,64 +0,0 @@
# LightDM GTK+ Configuration
# Available configuration options listed below.
#
# Appearance:
# theme-name = GTK+ theme to use
# icon-theme-name = Icon theme to use
# background = Background file to use, either an image path or a color (e.g. #772953)
# user-background = false|true ("true" by default) Display user background (if available)
# transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default)
# transition-type = ease-in-out|linear|none ("ease-in-out" by default)
#
# Fonts:
# font-name = Font to use
# xft-antialias = false|true Whether to antialias Xft fonts
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = none|slight|medium|hintfull What degree of hinting to use
# xft-rgba = none|rgb|bgr|vrgb|vbgr Type of subpixel antialiasing
#
# Login window:
# active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list
# position = x y ("50% 50%" by default) Login window position
# default-user-image = Image used as default user icon, path or #icon-name
# hide-user-image = false|true ("false" by default)
#
# Panel:
# panel-position = top|bottom ("top" by default)
# clock-format = strftime-format string, e.g. %H:%M
# indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path
#
# Accessibility:
# a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader.
# keyboard = command to launch on-screen keyboard (e.g. "onboard")
# keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default) Works only for "onboard"
# reader = command to launch screen reader (e.g. "orca")
#
# Security:
# allow-debugging = false|true ("false" by default)
# screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
#
# Template for per-monitor configuration:
# [monitor: name]
# background = overrides default value
# user-background = overrides default value
# laptop = false|true ("false" by default) Marks monitor as laptop display
# transition-duration = overrides default value
#
[greeter]
background=/etc/lightdm/bg.jpg
#user-background=
#theme-name=
#icon-theme-name=
font-name=Roboto
#xft-antialias=
#xft-dpi=
#xft-hintstyle=
#xft-rgba=
hide-user-image=true
panel-position=bottom
#indicators=
clock-format=%H:%M:%S
#keyboard=
#reader=
#position=
#screensaver-timeout=

View file

@ -14,6 +14,29 @@
dest: /etc/lightdm/bg.jpg
- name: configure lightdm-gtk-greeter
copy:
src: lightdm-gtk-greeter.conf
dest: /etc/lightdm/lightdm-gtk-greeter.conf
ini_file:
path: /etc/lightdm/lightdm-gtk-greeter.conf
section: greeter
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: background
value: /etc/lightdm/bg.jpg
- option: font-name
value: Roboto
- option: hide-user-image
value: "true"
- option: panel-position
value: bottom
- option: clock-format
value: "%H:%M:%S"
- option: allow-guest
value: "true"
- option: greeter-allow-guest
value: "true"
- name: get guest-account script
get_url:
url: https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/debian/guest-account.sh
dest: /usr/local/sbin/guest-account
mode: 755