mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Version 2.2
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -175,10 +175,51 @@
|
||||
name: "{{ packages.apt.install }}"
|
||||
state: present
|
||||
|
||||
- name: clone hannadiamond repository
|
||||
git:
|
||||
repo: https://github.com/hannadiamond/pwnagotchi-plugins.git
|
||||
dest: /usr/local/src/hannadiamond
|
||||
register: hannadiamondgit
|
||||
|
||||
- name: Creates custom plugin directory
|
||||
file:
|
||||
path: /usr/local/share/pwnagotchi/custom-plugins/
|
||||
state: directory
|
||||
when: hannadiamondgit.changed
|
||||
|
||||
- name: Copy ups_hat_c.py
|
||||
copy:
|
||||
src: /usr/local/src/hannadiamond/plugins/ups_hat_c.py
|
||||
dest: /usr/local/share/pwnagotchi/custom-plugins/ups_hat_c.py
|
||||
owner: root
|
||||
group: root
|
||||
mode: '644'
|
||||
|
||||
- name: Delete hannadiamond content & directory
|
||||
file:
|
||||
state: absent
|
||||
path: /usr/local/src/hannadiamond
|
||||
when: hannadiamondgit.changed
|
||||
|
||||
- name: clone pisugar 2 git
|
||||
git:
|
||||
repo: https://github.com/PiSugar/pisugar2py.git
|
||||
dest: /usr/local/lib/python3.7/dist-packages
|
||||
|
||||
- name: clone pisugar2 plugin
|
||||
git:
|
||||
repo: https://github.com/PiSugar/pwnagotchi-pisugar2-plugin.git
|
||||
dest: /usr/local/share/pwnagotchi/custom-plugins/
|
||||
|
||||
- name: clone pisugar3 plugin
|
||||
git:
|
||||
repo: https://github.com/nullm0ose/pwnagotchi-plugin-pisugar3.git
|
||||
dest: /usr/local/share/pwnagotchi/custom-plugins/
|
||||
|
||||
- name: clone pwnagotchi plugins repository
|
||||
git:
|
||||
repo: https://github.com/evilsocket/pwnagotchi-plugins-contrib.git
|
||||
dest: /usr/local/share/pwnagotchi/custom-plugins
|
||||
|
||||
- name: collect python pip package list
|
||||
command: "pip3 list"
|
||||
@ -205,11 +246,6 @@
|
||||
path: /usr/local/share/pwnagotchi/
|
||||
state: directory
|
||||
|
||||
- name: clone pwnagotchi plugins repository
|
||||
git:
|
||||
repo: https://github.com/evilsocket/pwnagotchi-plugins-contrib.git
|
||||
dest: /usr/local/share/pwnagotchi/availaible-plugins
|
||||
|
||||
- name: fetch pwnagotchi version
|
||||
set_fact:
|
||||
pwnagotchi_version: "{{ lookup('file', '/usr/local/src/pwnagotchi/pwnagotchi/_version.py') | regex_replace('.*__version__.*=.*''([0-9]+\\.[0-9]+\\.[0-9]+[A-Za-z0-9]*)''.*', '\\1') }}"
|
||||
|
Reference in New Issue
Block a user