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:
parent
179c8e073a
commit
ff747b4ffb
4 changed files with 23 additions and 3 deletions
|
@ -24,7 +24,7 @@ grafana_kiosk:
|
|||
ignore_certificate_errors: false
|
||||
enable_systemd: true
|
||||
display: DISPLAY=:0
|
||||
|
||||
lightdm_autologin: false
|
||||
|
||||
# perform basic versionscheck?
|
||||
submodules_versioncheck: false
|
||||
|
|
16
tasks/lightdm.yml
Normal file
16
tasks/lightdm.yml
Normal 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"
|
|
@ -12,3 +12,6 @@
|
|||
- include_tasks: install.yml
|
||||
|
||||
- include_tasks: config.yml
|
||||
|
||||
- include_tasks: lightdm.yml
|
||||
when: grafana_kiosk.lightdm_autologin | bool
|
||||
|
|
|
@ -23,6 +23,7 @@ _grafana_kiosk:
|
|||
ignore_certificate_errors: false
|
||||
enable_systemd: true
|
||||
display: DISPLAY=:0
|
||||
lightdm_autologin: false
|
||||
|
||||
_dl_matrix:
|
||||
'x86_64': "grafana-kiosk.linux.amd64"
|
||||
|
@ -31,5 +32,5 @@ _dl_matrix:
|
|||
'armv6l': "grafana-kiosk.linux.armv6"
|
||||
'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
|
||||
|
|
Loading…
Reference in a new issue