# 2022-07-22: SIMILAR TO roles/www_options/tasks/main.yml FOR browser # AND roles/network/tasks/netwarn.yml FOR iiab-network - 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: src: sshpwd-profile-iiab.sh.j2 dest: /etc/profile.d/sshpwd-profile-iiab.sh mode: '0644' - name: Is /etc/xdg/lxsession/LXDE-pi a directory? stat: path: /etc/xdg/lxsession/LXDE-pi register: lx - name: "If so, install from template: /etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh" template: src: sshpwd-lxde-iiab.sh.j2 dest: /etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh mode: '0755' when: lx.stat.isdir is defined and lx.stat.isdir # and is_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? 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 - name: ...and put a line in /etc/xdg/lxsession/LXDE-pi/autostart to trigger popups lineinfile: path: /etc/xdg/lxsession/LXDE-pi/autostart line: "@/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh" when: lx.stat.isdir is defined and lx.stat.isdir # and is_raspbian