Change to templating, fix install

master
Gary 2022-01-09 22:36:13 +00:00
parent fb2423f2a8
commit b086777202
2 changed files with 5 additions and 4 deletions

View File

@ -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:
```bash
# 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
ansible-playbook -i inv.yml setup-screen.yml -kK -l *host*
ansible-playbook -i inv.yml screen-setup.yml -kK -l *host*
```

View File

@ -8,7 +8,7 @@
cache_valid_time: 3600
- name: Install Needed Packages
apt: name={{item}} state=installed
apt: name={{item}} state=latest
with_items:
- vim
- sudo
@ -17,6 +17,7 @@
- openbox
- lightdm
- unclutter
- ca-certificates
- name: lightdm config
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
- 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:
- restart host