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

View File

@ -109,11 +109,13 @@
- python3-rpi.gpio - python3-rpi.gpio
tasks: tasks:
- name: change hostname - name: Create hostname
hostname: copy:
name: "{{pwnagotchi.hostname}}" dest: "/etc/hostname"
when: lookup('file', '/etc/hostname') == "raspberrypi" mode: 0644
register: hostname owner: root
content: |
line pwnagotchi
- name: add hostname to /etc/hosts - name: add hostname to /etc/hosts
lineinfile: lineinfile: