make lightdm guest work
This commit is contained in:
parent
fbfb2cdc6e
commit
d6e7930f43
1 changed files with 40 additions and 6 deletions
|
|
@ -30,13 +30,47 @@
|
|||
value: bottom
|
||||
- option: clock-format
|
||||
value: "%H:%M:%S"
|
||||
|
||||
- name: genereate guest-session directory
|
||||
file:
|
||||
path: /etc/guest-session
|
||||
state: directory
|
||||
|
||||
- name: link guest-session configs
|
||||
file:
|
||||
src: /etc/skel
|
||||
dest: /etc/guest-session/skel
|
||||
state: link
|
||||
|
||||
- name: get guest-account scripts
|
||||
get_url:
|
||||
url: "{{ item.url }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "0755"
|
||||
with_items:
|
||||
- url: https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/debian/guest-session-setup.sh
|
||||
dest: /etc/guest-session/setup.sh
|
||||
- url: https://raw.githubusercontent.com/CanonicalLtd/lightdm/master/debian/guest-account.sh
|
||||
dest: /usr/local/sbin/guest-account
|
||||
|
||||
- name: modify guest-account script
|
||||
lineinfile:
|
||||
path: /usr/local/sbin/guest-account
|
||||
regexp: '^dist_gs=.*$'
|
||||
line: 'dist_gs=/etc/guest-session'
|
||||
|
||||
- name: configure lightdm
|
||||
ini_file:
|
||||
path: /etc/lightdm/lightdm.conf
|
||||
section: "Seat:*"
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
with_items:
|
||||
- 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
|
||||
- option: user-session
|
||||
value: MATE
|
||||
- option: guest-session
|
||||
value: MATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue