Skip to content

Commit

Permalink
Set Raspberry Pi 4 (BURN-E) static IP
Browse files Browse the repository at this point in the history
This is important so we can set port forwards in the router and
configure other machines using that IP for things such as file sharing
server.

Closes #22
  • Loading branch information
rafamanzo committed May 23, 2020
1 parent fc1e92a commit 648644c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The version numbers try to follow the standards set by http://semver.org

## Unreleased

* Set Raspberry Pi 4 (BURN-E) static IP
* Create playbook to manage my Raspberry Pi 4 home server (BURN-E)

## v2.3.0 - 23/05/2020
Expand Down
18 changes: 18 additions & 0 deletions burn-e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,21 @@
state: latest
update_cache: yes
cache_valid_time: 3600
- name: Configure static IP
copy:
dest: /etc/netplan/01-netcfg.yaml
content: |
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses: [192.168.0.5/24]
gateway4: 192.168.0.1
nameservers:
addresses: [1.1.1.1,1.0.0.1]
register: network_conf
- name: Apply network changes
shell: netplan apply
2 changes: 1 addition & 1 deletion inventory
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
local ansible_host=127.0.0.1 ansible_python_interpreter=/usr/bin/python2
burn-e ansible_host=192.168.0.25
burn-e ansible_host=192.168.0.5

0 comments on commit 648644c

Please sign in to comment.