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:
|
tags:
|
||||||
- base
|
- base
|
||||||
|
|
||||||
- name: Add iiab-admin parameters to ini file
|
- name: Add 'iiab-admin' to list at /etc/iiab/iiab.ini
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file:
|
||||||
section=iiab-admin
|
dest: "{{ service_filelist }}"
|
||||||
option='{{ item.option }}'
|
section: iiab-admin
|
||||||
value='{{ item.value }}'
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: name
|
- option: name
|
||||||
value: iiab-admin
|
value: iiab-admin
|
||||||
|
@ -21,19 +22,23 @@
|
||||||
value: "{{ iiab_admin_user }}"
|
value: "{{ iiab_admin_user }}"
|
||||||
|
|
||||||
- name: Set up to issue warning if iiab-admin password is still default
|
- name: Set up to issue warning if iiab-admin password is still default
|
||||||
template: src=profile_ssh_warn.sh
|
template:
|
||||||
dest=/etc/profile.d/
|
src: profile_ssh_warn.sh
|
||||||
|
dest: /etc/profile.d/
|
||||||
|
|
||||||
- name: Is this LXDE?
|
- name: Is this LXDE?
|
||||||
stat: path=/home/pi/.config/lxsession
|
stat:
|
||||||
|
path: /home/pi/.config/lxsession
|
||||||
register: lx
|
register: lx
|
||||||
|
|
||||||
- name: Do the same if running on Raspbian
|
- name: Do the same if running on Raspbian
|
||||||
template: src=lxde_ssh_warn.sh
|
template:
|
||||||
dest=/home/pi/.config/lxsession/LXDE-pi/
|
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
|
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
|
- 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
|
lineinfile:
|
||||||
dest=/home/pi/.config/lxsession/LXDE-pi/autostart
|
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
|
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