Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-03 23:03:30 +01:00
parent eadf81672f
commit 65fde87721

View File

@ -350,12 +350,13 @@
- name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels - name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels
pip: pip:
name: name:
- "{{ lookup('fileglob', '/usr/local/src/torch*.whl') }}"
- "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}" - "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
- "{{ packages.torch.url }}"
- "{{ packages.torchvision.url }}"
extra_args: "--no-cache-dir" extra_args: "--no-cache-dir"
environment: environment:
#QEMU_CPU: arm1176 #QEMU_CPU: arm1176
QEMU_UNAME: "{{ kernel.full }}" #QEMU_UNAME: "{{ kernel.full }}"
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version) when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: create /usr/local/share/pwnagotchi/ folder - name: create /usr/local/share/pwnagotchi/ folder
@ -368,11 +369,6 @@
state: absent state: absent
path: /usr/local/src/pwnagotchi path: /usr/local/src/pwnagotchi
- name: remove torch whls
file:
state: absent
path: "{{ lookup('fileglob', '/usr/local/src/torch*.whl') }}"
########################################## ##########################################
# #
# pwngrid, bettercap # pwngrid, bettercap