Update pwnagotchi.yml

This commit is contained in:
Chad Walter Cummings 2021-12-12 00:50:49 -06:00 committed by GitHub
parent 3e0f3dcb8a
commit 77362bc530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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