mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
parent
625c4925db
commit
2c322c4baa
1 changed files with 18 additions and 13 deletions
|
@ -7,11 +7,12 @@
|
|||
tags:
|
||||
- base
|
||||
|
||||
- name: Add iiab-admin parameters to ini file
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=iiab-admin
|
||||
option='{{ item.option }}'
|
||||
value='{{ item.value }}'
|
||||
- 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
|
||||
|
@ -21,19 +22,23 @@
|
|||
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/
|
||||
template:
|
||||
src: profile_ssh_warn.sh
|
||||
dest: /etc/profile.d/
|
||||
|
||||
- name: Is this LXDE?
|
||||
stat: path=/home/pi/.config/lxsession
|
||||
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/
|
||||
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
|
||||
lineinfile: line=@/home/pi/.config/lxsession/LXDE-pi/lxde_ssh_warn.sh
|
||||
dest=/home/pi/.config/lxsession/LXDE-pi/autostart
|
||||
- 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue