From 77362bc5300c250a6ec27c7657555c3b815d1857 Mon Sep 17 00:00:00 2001 From: Chad Walter Cummings <95538539+scifijunk@users.noreply.github.com> Date: Sun, 12 Dec 2021 00:50:49 -0600 Subject: [PATCH] Update pwnagotchi.yml --- builder/pwnagotchi.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index 695c589..dd24a74 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -109,11 +109,13 @@ - python3-rpi.gpio tasks: - - name: change hostname - hostname: - name: "{{pwnagotchi.hostname}}" - when: lookup('file', '/etc/hostname') == "raspberrypi" - register: hostname + - name: Create hostname + copy: + dest: "/etc/hostname" + mode: 0644 + owner: root + content: | + line pwnagotchi - name: add hostname to /etc/hosts lineinfile: