Update pwnagotchi.yml
This commit is contained in:
parent
77362bc530
commit
ad1cac4755
@ -109,7 +109,7 @@
|
|||||||
- python3-rpi.gpio
|
- python3-rpi.gpio
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create hostname
|
- name: Create hostname file
|
||||||
copy:
|
copy:
|
||||||
dest: "/etc/hostname"
|
dest: "/etc/hostname"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
@ -117,13 +117,18 @@
|
|||||||
content: |
|
content: |
|
||||||
line pwnagotchi
|
line pwnagotchi
|
||||||
|
|
||||||
- name: add hostname to /etc/hosts
|
- name: create hosts file
|
||||||
lineinfile:
|
copy:
|
||||||
dest: /etc/hosts
|
dest: "/etc/hosts"
|
||||||
regexp: '^127\.0\.1\.1[ \t]+raspberrypi'
|
mode: 0644
|
||||||
line: "127.0.1.1\t{{pwnagotchi.hostname}}"
|
owner: root
|
||||||
state: present
|
content: |
|
||||||
when: hostname.changed
|
line 127.0.0.1 localhost
|
||||||
|
line ::1 localhost ip6-localhost ip6-loopback
|
||||||
|
line ff02::1 ip6-allnodes
|
||||||
|
line ff02::2 ip6-allrouters
|
||||||
|
line
|
||||||
|
line 127.0.1.1 pwnagotchi
|
||||||
|
|
||||||
- name: disable sap plugin for bluetooth.service
|
- name: disable sap plugin for bluetooth.service
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user