mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -152,20 +152,11 @@
|
|||||||
ARCHFLAGS: "-arch aarch64"
|
ARCHFLAGS: "-arch aarch64"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Read a file content"
|
- name: Create user=pi, pass=orange
|
||||||
shell: |
|
|
||||||
cat /boot/boot.cmd
|
|
||||||
register: file_content
|
|
||||||
|
|
||||||
- name: "Print the file content to a console"
|
|
||||||
debug:
|
|
||||||
msg: "{{ file_content.stdout }}"
|
|
||||||
|
|
||||||
- name: Create pi user
|
|
||||||
copy:
|
copy:
|
||||||
dest: /boot/userconf
|
dest: /boot/userconf
|
||||||
content: |
|
content: |
|
||||||
pi:$6$3jNr0GA9KIyt4hmM$efeVIopdMQ8DGgEPCWWlbx3mJJNAYci1lEXGdlky0xPyjqwKNbwTL5SrCcpb4144C4IvzWjn7Iv.QjqmU7iyT/
|
pi:$6$2f51RQqfvzZaVljt$zNBftBn3LDVjJckR0cA/RdGA3iCshbUvuUUhIOD2uVLnaBazoxHmgiD1a0xAz6gQO4i3rGLzme931bJeNwNyx.
|
||||||
|
|
||||||
- name: change hostname
|
- name: change hostname
|
||||||
lineinfile:
|
lineinfile:
|
||||||
@ -407,6 +398,13 @@
|
|||||||
autoremove: yes
|
autoremove: yes
|
||||||
when: removed.changed
|
when: removed.changed
|
||||||
|
|
||||||
|
- name: remove ssh keys
|
||||||
|
file:
|
||||||
|
state: absent
|
||||||
|
path: "{{ item }}"
|
||||||
|
with_fileglob:
|
||||||
|
- "/etc/ssh/ssh_host*_key*"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload systemd services
|
- name: reload systemd services
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -272,7 +272,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
path: /usr/lib/firmware/brcm/brcmfmac43436-sdio.clm_blob
|
path: /usr/lib/firmware/brcm/brcmfmac43436-sdio.clm_blob
|
||||||
|
|
||||||
- name: Delete the RPi302w firmware blob to avoid it crashing
|
- name: Delete the RPi02w firmware blob to avoid it crashing
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: /usr/lib/firmware/brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.clm_blob
|
path: /usr/lib/firmware/brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.clm_blob
|
||||||
@ -573,6 +573,13 @@
|
|||||||
autoremove: yes
|
autoremove: yes
|
||||||
when: removed.changed
|
when: removed.changed
|
||||||
|
|
||||||
|
- name: remove ssh keys
|
||||||
|
file:
|
||||||
|
state: absent
|
||||||
|
path: "{{ item }}"
|
||||||
|
with_fileglob:
|
||||||
|
- "/etc/ssh/ssh_host*_key*"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload systemd services
|
- name: reload systemd services
|
||||||
systemd:
|
systemd:
|
||||||
|
Reference in New Issue
Block a user