Update pwnagotchi.yml
This commit is contained in:
parent
7db5c10cd0
commit
8c5e84e1c7
@ -69,14 +69,14 @@
|
|||||||
- libopenmpi-dev
|
- libopenmpi-dev
|
||||||
- libatlas-base-dev
|
- libatlas-base-dev
|
||||||
- libjasper-dev
|
- libjasper-dev
|
||||||
- libqt5gui5
|
- libqtgui4
|
||||||
- libqt5test5
|
- libqt4-test
|
||||||
- libopenjp2-7
|
- libopenjp2-7
|
||||||
- libtiff5
|
- libtiff5
|
||||||
- tcpdump
|
- tcpdump
|
||||||
- lsof
|
- lsof
|
||||||
- libilmbase25
|
- libilmbase23
|
||||||
- libopenexr25
|
- libopenexr23
|
||||||
- libgstreamer1.0-0
|
- libgstreamer1.0-0
|
||||||
- libavcodec58
|
- libavcodec58
|
||||||
- libavformat58
|
- libavformat58
|
||||||
@ -109,25 +109,19 @@
|
|||||||
- python3-rpi.gpio
|
- python3-rpi.gpio
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create hostname file
|
- name: change hostname
|
||||||
copy:
|
hostname:
|
||||||
dest: "/etc/hostname"
|
name: "{{pwnagotchi.hostname}}"
|
||||||
mode: 0644
|
when: lookup('file', '/etc/hostname') == "raspberrypi"
|
||||||
owner: root
|
register: hostname
|
||||||
content: |
|
|
||||||
pwnagotchi
|
|
||||||
|
|
||||||
- name: create hosts file
|
- name: add hostname to /etc/hosts
|
||||||
copy:
|
lineinfile:
|
||||||
dest: "/etc/hosts"
|
dest: /etc/hosts
|
||||||
mode: 0644
|
regexp: '^127\.0\.1\.1[ \t]+raspberrypi'
|
||||||
owner: root
|
line: "127.0.1.1\t{{pwnagotchi.hostname}}"
|
||||||
content: |
|
state: present
|
||||||
127.0.0.1 localhost
|
when: hostname.changed
|
||||||
::1 localhost ip6-localhost ip6-loopback
|
|
||||||
ff02::1 ip6-allnodes
|
|
||||||
ff02::2 ip6-allrouters
|
|
||||||
127.0.1.1 pwnagotchi
|
|
||||||
|
|
||||||
- name: disable sap plugin for bluetooth.service
|
- name: disable sap plugin for bluetooth.service
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user