From 8c5e84e1c732923d835e28338d22d04e7545b3fd Mon Sep 17 00:00:00 2001 From: Chad Walter Cummings <95538539+scifijunk@users.noreply.github.com> Date: Mon, 13 Dec 2021 12:59:31 -0600 Subject: [PATCH] Update pwnagotchi.yml --- builder/pwnagotchi.yml | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index c56b16e..92e9474 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -69,14 +69,14 @@ - libopenmpi-dev - libatlas-base-dev - libjasper-dev - - libqt5gui5 - - libqt5test5 + - libqtgui4 + - libqt4-test - libopenjp2-7 - libtiff5 - tcpdump - lsof - - libilmbase25 - - libopenexr25 + - libilmbase23 + - libopenexr23 - libgstreamer1.0-0 - libavcodec58 - libavformat58 @@ -109,25 +109,19 @@ - python3-rpi.gpio tasks: - - name: Create hostname file - copy: - dest: "/etc/hostname" - mode: 0644 - owner: root - content: | - pwnagotchi + - name: change hostname + hostname: + name: "{{pwnagotchi.hostname}}" + when: lookup('file', '/etc/hostname') == "raspberrypi" + register: hostname - - name: create hosts file - copy: - dest: "/etc/hosts" - mode: 0644 - owner: root - content: | - 127.0.0.1 localhost - ::1 localhost ip6-localhost ip6-loopback - ff02::1 ip6-allnodes - ff02::2 ip6-allrouters - 127.0.1.1 pwnagotchi + - name: add hostname to /etc/hosts + lineinfile: + dest: /etc/hosts + regexp: '^127\.0\.1\.1[ \t]+raspberrypi' + line: "127.0.1.1\t{{pwnagotchi.hostname}}" + state: present + when: hostname.changed - name: disable sap plugin for bluetooth.service lineinfile: