Fixing Makefile and ansible playbook

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-08-24 11:15:12 +02:00
parent 069c28b77e
commit 6888b0547a
2 changed files with 13 additions and 9 deletions

View File

@ -1,6 +1,6 @@
PACKER_VERSION=1.9.2
PACKER_VERSION=1.9.4
PWN_HOSTNAME=pwnagotchi
PWN_VERSION=torch
PWN_VERSION=2.0.1
all: clean install image
@ -11,7 +11,7 @@ langs:
done
install:
curl https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_arm64.zip -o /tmp/packer.zip
curl https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_amd64.zip -o /tmp/packer.zip
unzip /tmp/packer.zip -d /tmp
sudo mv /tmp/packer /usr/bin/packer
git clone https://github.com/solo-io/packer-plugin-arm-image /tmp/packer-plugin-arm-image

View File

@ -5,7 +5,7 @@
vars:
pwnagotchi:
hostname: "{{ lookup('env', 'PWN_HOSTNAME') | default('pwnagotchi', true) }}"
version: "{{ lookup('env', 'PWN_VERSION') | default('master', true) }}"
version: "{{ lookup('env', 'PWN_VERSION') | default('pwnagotchi-torch', true) }}"
system:
boot_options:
- "dtoverlay=dwc2"
@ -138,13 +138,17 @@
tasks:
- name: download old libpcap packages
shell: "wget http://ports.ubuntu.com/pool/main/libp/libpcap/libpcap0.8_1.9.1-3_arm64.deb && wget http://ports.ubuntu.com/pool/main/libp/libpcap/libpcap0.8-dev_1.9.1-3_arm64.deb && wget http://ports.ubuntu.com/pool/main/libp/libpcap/libpcap-dev_1.9.1-3_arm64.deb"
dest: /usr/local/src/
ansible.builtin.get_url:
url: "http://ports.ubuntu.com/pool/main/libp/libpcap/{{ item }}"
dest: /usr/local/src/
with_items:
- libpcap0.8-dev_1.9.1-_arm64.deb
- libpcap0.8_1.9.1-3_arm64.deb
- libpcap-dev_1.9.1-3_arm64.deb
- name: install old libpcap packages
shell: dpkg -i /usr/local/src/libpcap*
args:
executable: /bin/bash
apt:
deb: /usr/local/src/libpcap*
register: libpcap
- name: change hostname