mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
For Raspbian Desktop changes of 2018-11-13
This commit is contained in:
parent
d87b61a95a
commit
0af351ca96
1 changed files with 18 additions and 10 deletions
|
@ -21,24 +21,32 @@
|
||||||
- option: iiab_admin_user
|
- option: iiab_admin_user
|
||||||
value: "{{ iiab_admin_user }}"
|
value: "{{ iiab_admin_user }}"
|
||||||
|
|
||||||
- name: Install /etc/profile.d/profile_ssh_warn.sh from template, to issue warnings (during shell/ssh logins) if iiab-admin password is still default
|
- name: Install /etc/profile.d/sshpwd-profile-iiab.sh from template, to issue warnings (during shell/ssh logins) if iiab-admin password is the default
|
||||||
template:
|
template:
|
||||||
src: profile_ssh_warn.sh
|
src: sshpwd-profile-iiab.sh
|
||||||
dest: /etc/profile.d/
|
dest: /etc/profile.d/
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Is this LXDE?
|
- name: Is this LXDE-pi?
|
||||||
stat:
|
stat:
|
||||||
path: /home/pi/.config/lxsession
|
path: /etc/xdg/lxsession/LXDE-pi
|
||||||
register: lx
|
register: lx
|
||||||
|
|
||||||
- name: "Likewise for Raspbian, installing: /home/pi/.config/lxsession/LXDE-pi/lxde_ssh_warn.sh"
|
- name: "Likewise for Raspbian, installing: /etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh"
|
||||||
template:
|
template:
|
||||||
src: lxde_ssh_warn.sh
|
src: sshpwd-lxde-iiab.sh
|
||||||
dest: /home/pi/.config/lxsession/LXDE-pi/
|
dest: /etc/xdg/lxsession/LXDE-pi/
|
||||||
|
mode: 0755
|
||||||
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|
||||||
|
|
||||||
- name: Put line in /home/pi/.config/lxsession/LXDE-pi/autostart to run the above (raspbian)
|
# 2019-03-07: This popup (/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh) does
|
||||||
|
# not actually appear when triggered by /etc/xdg/autostart/pprompt-iiab.desktop
|
||||||
|
# (or pprompt.desktop as Raspbian has working since 2018-11-13!) Too bad as it
|
||||||
|
# would be really nice to standardize this popup across Ubermix & all distros..
|
||||||
|
# Is this a permissions/security issue presumably?
|
||||||
|
|
||||||
|
- name: Put line in /etc/xdg/lxsession/LXDE-pi/autostart to run the above (raspbian)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /home/pi/.config/lxsession/LXDE-pi/autostart
|
path: /etc/xdg/lxsession/LXDE-pi/autostart
|
||||||
line: "@/home/pi/.config/lxsession/LXDE-pi/lxde_ssh_warn.sh"
|
line: "@/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh"
|
||||||
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue