Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-03 14:53:17 +02:00
parent 983c757f72
commit f9d3ce58a5
2 changed files with 16 additions and 16 deletions

View File

@ -346,10 +346,23 @@
path: /usr/local/share/pwnagotchi/custom-plugins/
state: directory
- name: Install pwnagotchi from source archive
- name: clone pwnagotchi repository
git:
repo: https://github.com/evilsocket/pwnagotchi.git
dest: /usr/local/src/pwnagotchi
register: pwnagotchigit
- name: build pwnagotchi wheel
command: "python3 setup.py sdist bdist_wheel"
args:
chdir: /usr/local/src/pwnagotchi
when: pwnagotchigit.changed
- name: install pwnagotchi wheel and dependencies
pip:
name: /usr/local/src/pwnagotchi/pwnagotchi-{{ pwnagotchi.version }}.tar.gz
extra_args: --verbose --prefer-binary --ignore-installed
name: "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
extra_args: "--no-cache-dir"
when: pwnagotchigit.changed
- name: create /usr/local/share/pwnagotchi/ folder
file: