Change to templating, fix install
parent
fb2423f2a8
commit
b086777202
|
|
@ -10,9 +10,9 @@ This playbook assumes a standard **Raspberry Pi OS Lite** image has been install
|
||||||
To invoke the playbook make sure you have updated the `inv.yml` for your needs, then run as follows:
|
To invoke the playbook make sure you have updated the `inv.yml` for your needs, then run as follows:
|
||||||
```bash
|
```bash
|
||||||
# Run against all hosts (-kK is to ask for the SSH/SUDO Password)
|
# Run against all hosts (-kK is to ask for the SSH/SUDO Password)
|
||||||
ansible-playbook -i inv.yml setup-screen.yml -kK
|
ansible-playbook -i inv.yml screen-setup.yml -kK
|
||||||
|
|
||||||
# Run against limited hosts
|
# Run against limited hosts
|
||||||
ansible-playbook -i inv.yml setup-screen.yml -kK -l *host*
|
ansible-playbook -i inv.yml screen-setup.yml -kK -l *host*
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|
||||||
- name: Install Needed Packages
|
- name: Install Needed Packages
|
||||||
apt: name={{item}} state=installed
|
apt: name={{item}} state=latest
|
||||||
with_items:
|
with_items:
|
||||||
- vim
|
- vim
|
||||||
- sudo
|
- sudo
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
- openbox
|
- openbox
|
||||||
- lightdm
|
- lightdm
|
||||||
- unclutter
|
- unclutter
|
||||||
|
- ca-certificates
|
||||||
|
|
||||||
- name: lightdm config
|
- name: lightdm config
|
||||||
copy: src=files/lightdm.conf dest=/etc/lightdm/lightdm.conf
|
copy: src=files/lightdm.conf dest=/etc/lightdm/lightdm.conf
|
||||||
|
|
@ -30,7 +31,7 @@
|
||||||
file: path=/home/screen-user/.config/openbox state=directory group=screen-user owner=screen-user recurse=yes
|
file: path=/home/screen-user/.config/openbox state=directory group=screen-user owner=screen-user recurse=yes
|
||||||
|
|
||||||
- name: screen-user openbox config
|
- name: screen-user openbox config
|
||||||
copy: src=template/openbox-autostart.j2 dest=/home/screen-user/.config/openbox/autostart
|
template: src=template/openbox-autostart.j2 dest=/home/screen-user/.config/openbox/autostart
|
||||||
notify:
|
notify:
|
||||||
- restart host
|
- restart host
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue