Small update version 2.1.1

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-08-29 21:02:43 +02:00
parent e32b580166
commit ecd4c05b84
5 changed files with 40 additions and 49 deletions

View File

@ -36,27 +36,17 @@
}
],
"provisioners": [
{
"inline": ["mkdir -p /usr/local/src/pwnagotchi"],
"type": "shell"
},
{
"type": "file",
"sources": [
"../../../dist/pwnagotchi-{{user `pwn_version`}}.tar.gz"
],
"destination": "/usr/local/src/pwnagotchi/"
},
{
"type": "shell",
"inline": [
"apt-get -y --allow-releaseinfo-change update",
"apt-get install -y --no-install-recommends ansible"
"apt-get -y dist-upgrade",
"apt-get install -y ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "../../../builder/pwnagotchi.yml",
"playbook_file": "../../builder/pwnagotchi.yml",
"extra_arguments": [
"--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""
],

View File

@ -171,11 +171,6 @@
state: absent
purge: yes
- name: upgrade apt distro
become_user: root
apt:
upgrade: dist
- name: install packages
become_user: root
apt:
@ -303,22 +298,25 @@
command: ln -s /usr/local/bin/bettercap /usr/bin/bettercap
when: bettercap.changed
- name: download and install bettercap
unarchive:
src: "{{ packages.bettercap.url }}"
dest: /usr/bin
remote_src: yes
exclude:
- README.md
- LICENSE.md
mode: 0755
- name: clone bettercap caplets
git:
repo: https://github.com/jayofelony/caplets.git
dest: /tmp/caplets
register: capletsgit
- name: install bettercap caplets
make:
chdir: /tmp/caplets
target: install
when: capletsgit.changed
- name: download and install bettercap ui
unarchive:
src: "{{ packages.bettercap.ui }}"
dest: /usr/local/share/bettercap/
remote_src: yes
mode: 0755
# Install nexmon to fix wireless scanning (takes 2.5G of space)
- name: clone nexmon repository
git:
@ -417,19 +415,6 @@
state: absent
path: /usr/local/src/nexmon/
- name: install bettercap caplets
make:
chdir: /tmp/caplets
target: install
when: capletsgit.changed
- name: download and install bettercap ui
unarchive:
src: "{{ packages.bettercap.ui }}"
dest: /usr/local/share/bettercap/
remote_src: yes
mode: 0755
- name: add HDMI powersave to rc.local
blockinfile:
path: /etc/rc.local