Update pwnagotchi.yml

This commit is contained in:
Chad Walter Cummings 2021-12-13 12:59:31 -06:00 committed by GitHub
parent 7db5c10cd0
commit 8c5e84e1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: