mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -11,19 +11,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"provisioners": [
|
"provisioners": [
|
||||||
{
|
|
||||||
"type": "shell",
|
|
||||||
"inline": [
|
|
||||||
"mkdir -p /usr/local/src/pwnagotchi"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"sources": [
|
|
||||||
"../dist/pwnagotchi-{{user `pwn_version`}}.tar.gz"
|
|
||||||
],
|
|
||||||
"destination": "/usr/local/src/pwnagotchi/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"source": "../builder/data/usr/bin/pwnlib",
|
"source": "../builder/data/usr/bin/pwnlib",
|
||||||
|
@ -346,10 +346,23 @@
|
|||||||
path: /usr/local/share/pwnagotchi/custom-plugins/
|
path: /usr/local/share/pwnagotchi/custom-plugins/
|
||||||
state: directory
|
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:
|
pip:
|
||||||
name: /usr/local/src/pwnagotchi/pwnagotchi-{{ pwnagotchi.version }}.tar.gz
|
name: "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
|
||||||
extra_args: --verbose --prefer-binary --ignore-installed
|
extra_args: "--no-cache-dir"
|
||||||
|
when: pwnagotchigit.changed
|
||||||
|
|
||||||
- name: create /usr/local/share/pwnagotchi/ folder
|
- name: create /usr/local/share/pwnagotchi/ folder
|
||||||
file:
|
file:
|
||||||
|
Reference in New Issue
Block a user