summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-31 07:28:35 +0300
committerLars Wirzenius <liw@liw.fi>2022-07-31 07:28:35 +0300
commit0e853870c2fece353cab23b4d3107215d9e3b0f9 (patch)
tree4c95b61d97b6b9e77f58b1621c953bed8d201525
parent0d57a52bb6323f2621b6eeb708d8165820b10d21 (diff)
downloadpuomi-0e853870c2fece353cab23b4d3107215d9e3b0f9.tar.gz
playbook works
Sponsored-by: author
-rw-r--r--hosts2
-rw-r--r--puomi-playbook.yml14
2 files changed, 5 insertions, 11 deletions
diff --git a/hosts b/hosts
new file mode 100644
index 0000000..e95430f
--- /dev/null
+++ b/hosts
@@ -0,0 +1,2 @@
+[all]
+puomi
diff --git a/puomi-playbook.yml b/puomi-playbook.yml
index f99a1ef..3a06be7 100644
--- a/puomi-playbook.yml
+++ b/puomi-playbook.yml
@@ -1,6 +1,7 @@
# Ansible playbook for installing a router.
- hosts: puomi
+ remote_user: root
tasks:
- name: "add contrib and non-free to APT sources, for firmware"
apt_repository:
@@ -29,7 +30,7 @@
copy:
content: |
dhcp-range=10.1.1.10,10.1.1.250,255.255.255.0,1h
- host-record=puomi,10.1.1.1
+ host-record={{ inventory_hostname }},10.1.1.1
interface=br0
interface=lo
max-cache-ttl=30
@@ -86,7 +87,7 @@
Kind=bridge
dest: /etc/systemd/network/br0.netdev
- - name: "add wired devices to br0"
+ - name: "add LAN devices to br0"
copy:
content: |
[Match]
@@ -112,15 +113,6 @@
vars:
ansible_python_interpreter: /usr/bin/python3
- sane_debian_system_version: 2
- sane_debian_system_codename: bullseye
- sane_debian_system_timezone: Europe/Helsinki
- sane_debian_system_sources_lists:
- - repo: |
- deb http://deb.debian.org/debian bullseye contrib non-free
-
- unix_users_version: 2
-
wifi_essid: Valkama2
wifi_country_code: FI
wifi_passphrase: Oomam2ah