Add fact collection with xrandr

This commit is contained in:
Alexander Grothe
2017-04-10 13:24:40 +02:00
parent bcbdc8308b
commit a788fdcb4d
8 changed files with 888 additions and 344 deletions

View File

@@ -1,9 +0,0 @@
---
# file: roles/display-data/tasks/main.yml
- name: "detect xorg configuration"
action: xorg_facts
- debug:
var: xorg
verbosity: 1

View File

@@ -11,8 +11,42 @@
- xserver-xorg-input-all
- xlogin
- xterm
#- yavdr-xorg
- openbox
#- yavdr-xorg
- name: "stop x@vt7.service"
systemd:
name: "x@vt7.service"
state: stopped
- name: "expand template for x-verbose@.service"
template:
src: "templates/x-verbose@.service.j2"
dest: "/etc/systemd/system/x-verbose@.service"
- name: "start x-verbose@.service"
systemd:
name: "x-verbose@vt7.service"
state: started
enabled: false
masked: false
daemon_reload: true
- name: "wait a little bit, so X has some time to start up (needed?)"
wait_for:
timeout: 3
- name: "detect xorg configuration"
action: xrandr_facts
- name: "stop x-verbose@vt7.service"
systemd:
name: "x-verbose@vt7.service"
state: stopped
enabled: false
masked: true
### TODO: Create xorg configuration
- name: create folders for user session
file:

View File

@@ -0,0 +1,8 @@
[Unit]
Description=X with verbose logging on %I
Wants=graphical.target
Before=graphical.target
[Service]
Type=forking
ExecStart=/usr/bin/x-daemon -logverbose 6 -noreset %I