mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
- include_tasks: admin-user.yml
|
|
tags:
|
|
- base
|
|
when: not no_admin is defined
|
|
|
|
- include_tasks: access.yml
|
|
tags:
|
|
- base
|
|
|
|
- name: Add 'iiab-admin' to list at /etc/iiab/iiab.ini
|
|
ini_file:
|
|
dest: "{{ service_filelist }}"
|
|
section: iiab-admin
|
|
option: "{{ item.option }}"
|
|
value: "{{ item.value }}"
|
|
with_items:
|
|
- option: name
|
|
value: iiab-admin
|
|
- option: description
|
|
value: '"Admin User"'
|
|
- option: iiab_admin_user
|
|
value: "{{ iiab_admin_user }}"
|
|
|
|
- name: Set up to issue warning if iiab-admin password is still default
|
|
template:
|
|
src: profile_ssh_warn.sh
|
|
dest: /etc/profile.d/
|
|
|
|
- name: Is this LXDE?
|
|
stat:
|
|
path: /home/pi/.config/lxsession
|
|
register: lx
|
|
|
|
- name: Do the same if running on Raspbian
|
|
template:
|
|
src: lxde_ssh_warn.sh
|
|
dest: /home/pi/.config/lxsession/LXDE-pi/
|
|
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|
|
|
|
- name: Put an autostart line to check for default password in LXDE (raspbian)
|
|
lineinfile:
|
|
line: @/home/pi/.config/lxsession/LXDE-pi/lxde_ssh_warn.sh
|
|
dest: /home/pi/.config/lxsession/LXDE-pi/autostart
|
|
when: lx.stat.isdir is defined and lx.stat.isdir and is_rpi and is_debuntu
|