1
0
Fork 0
mirror of https://github.com/roles-ansible/role-grafana-kiosk.git synced 2024-08-16 10:09:49 +02:00

Allow lightdm config

This commit is contained in:
L3D 2020-07-02 13:58:43 +02:00 committed by L3D
parent 179c8e073a
commit ff747b4ffb
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 23 additions and 3 deletions

View file

@ -24,7 +24,7 @@ grafana_kiosk:
ignore_certificate_errors: false ignore_certificate_errors: false
enable_systemd: true enable_systemd: true
display: DISPLAY=:0 display: DISPLAY=:0
lightdm_autologin: false
# perform basic versionscheck? # perform basic versionscheck?
submodules_versioncheck: false submodules_versioncheck: false

16
tasks/lightdm.yml Normal file
View file

@ -0,0 +1,16 @@
---
- name: set autologin user to '{{ grafana_kiosk.user }}'
become: true
lineinfile:
path: /etc/lightdm/lightdm.conf
regexp: '^autologin-user='
insertafter: '^#autologin-user='
line: "autologin-user={{ grafana_kiosk.user }}"
- name: set autologin user timeout to 0
become: true
lineinfile:
path: /etc/lightdm/lightdm.conf
regexp: '^autologin-user-timeout='
insertafter: '^#autologin-user-timeout='
line: "autologin-user-timeout=0"

View file

@ -4,7 +4,7 @@
grafana_kiosk: "{{ _grafana_kiosk|combine(grafana_kiosk, recursive=True) }}" grafana_kiosk: "{{ _grafana_kiosk|combine(grafana_kiosk, recursive=True) }}"
- include_tasks: versioncheck.yml - include_tasks: versioncheck.yml
when: submodules_versioncheck|bool when: submodules_versioncheck | bool
- include_tasks: packages.yml - include_tasks: packages.yml
when: grafana_kiosk.install_requirements | bool when: grafana_kiosk.install_requirements | bool
@ -12,3 +12,6 @@
- include_tasks: install.yml - include_tasks: install.yml
- include_tasks: config.yml - include_tasks: config.yml
- include_tasks: lightdm.yml
when: grafana_kiosk.lightdm_autologin | bool

View file

@ -23,6 +23,7 @@ _grafana_kiosk:
ignore_certificate_errors: false ignore_certificate_errors: false
enable_systemd: true enable_systemd: true
display: DISPLAY=:0 display: DISPLAY=:0
lightdm_autologin: false
_dl_matrix: _dl_matrix:
'x86_64': "grafana-kiosk.linux.amd64" 'x86_64': "grafana-kiosk.linux.amd64"
@ -31,5 +32,5 @@ _dl_matrix:
'armv6l': "grafana-kiosk.linux.armv6" 'armv6l': "grafana-kiosk.linux.armv6"
'armv5l': "grafana-kiosk.linux.armv5" 'armv5l': "grafana-kiosk.linux.armv5"
playbook_version_number: 11 # should be an integer playbook_version_number: 12 # should be an integer
playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string