2022-07-23 00:38:22 +00:00
|
|
|
# 2022-07-22: SIMILAR TO roles/www_options/tasks/main.yml FOR browser
|
|
|
|
# AND roles/network/tasks/netwarn.yml FOR iiab-network
|
|
|
|
|
|
|
|
|
2023-12-17 04:51:24 +00:00
|
|
|
- name: Install /etc/profile.d/iiab-pwdwarn-profile.sh from template, to issue warnings (during shell/ssh logins) if iiab-admin password is the default
|
2020-10-16 18:00:30 +00:00
|
|
|
template:
|
2023-12-17 04:51:24 +00:00
|
|
|
src: iiab-pwdwarn-profile.sh.j2
|
|
|
|
dest: /etc/profile.d/iiab-pwdwarn-profile.sh
|
2020-10-16 18:00:30 +00:00
|
|
|
mode: '0644'
|
|
|
|
|
2023-12-17 04:51:24 +00:00
|
|
|
- name: Does /home/{{ iiab_admin_user }}/.config/wayfire.ini exist?
|
2020-10-16 18:00:30 +00:00
|
|
|
stat:
|
2023-12-17 04:51:24 +00:00
|
|
|
path: /home/{{ iiab_admin_user }}/.config/wayfire.ini
|
|
|
|
register: wayfire_ini
|
2020-10-16 18:00:30 +00:00
|
|
|
|
2023-12-17 04:51:24 +00:00
|
|
|
- name: "If so, install from template: /usr/local/sbin/iiab-pwdwarn-wayfire"
|
2020-10-16 18:00:30 +00:00
|
|
|
template:
|
2023-12-17 04:51:24 +00:00
|
|
|
src: iiab-pwdwarn-wayfire.j2
|
|
|
|
dest: /usr/local/sbin/iiab-pwdwarn-wayfire
|
2020-10-16 18:00:30 +00:00
|
|
|
mode: '0755'
|
2023-12-17 04:51:24 +00:00
|
|
|
when: wayfire_ini.stat.exists
|
2020-10-16 18:00:30 +00:00
|
|
|
|
2023-12-17 04:51:24 +00:00
|
|
|
# 2019-03-07: This pop-up (/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh) did
|
2020-10-16 18:00:30 +00:00
|
|
|
# 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
|
2023-12-17 04:51:24 +00:00
|
|
|
# would be really nice to standardize pop-ups across Ubermix & all distros...
|
2020-10-16 18:00:30 +00:00
|
|
|
# Is this a permissions/security issue presumably? Official autostart spec is:
|
|
|
|
# https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html
|
|
|
|
# Raspbian's 2016-2018 evolution here: https://github.com/iiab/iiab/issues/1537
|
|
|
|
|
2023-12-22 15:01:33 +00:00
|
|
|
- name: ...and put a line in /home/{{ iiab_admin_user }}/.config/wayfire.ini to trigger iiab-pwdwarn-wayfire (& pop-up as nec)
|
2023-12-17 04:51:24 +00:00
|
|
|
ini_file:
|
|
|
|
path: /home/{{ iiab_admin_user }}/.config/wayfire.ini # iiab-admin
|
|
|
|
section: autostart
|
|
|
|
option: iiab-pwdwarn-wayfire
|
|
|
|
value: /usr/local/sbin/iiab-pwdwarn-wayfire
|
|
|
|
when: wayfire_ini.stat.exists
|