diff --git a/lotus-land-story/README.md b/lotus-land-story/README.md
index 2dfdeee..080a00c 100644
--- a/lotus-land-story/README.md
+++ b/lotus-land-story/README.md
@@ -1,14 +1,17 @@
# Lotus Land Story
```
-# create the linode instance
-terraform apply
+# setup
+export LOTUS_LAND_STORY_DOMAIN=...
+
+# terraform
+rake terraform
# add the IP to ~/.ssh/config
# make sure we can hit it
ansible all -m ping
-# run ansible
-ansible-playbook main.yml
+# ansible
+rake ansible
```
diff --git a/lotus-land-story/Rakefile b/lotus-land-story/Rakefile
index 3fec8ad..eb012d7 100644
--- a/lotus-land-story/Rakefile
+++ b/lotus-land-story/Rakefile
@@ -15,11 +15,11 @@ task "terraform.tfvars" do |t|
end
task "vars.yml" do |t|
+ linode_volume = `terraform output -raw lotus_land_story_volume`
miniflux_password = `op read op://Private/Miniflux/password`.strip
File.write(t.name, YAML.dump({
- "domain" => DOMAIN,
- "miniflux_password" => miniflux_password,
- }))
+ domain: DOMAIN, linode_volume:, miniflux_password:,
+ }.transform_keys(&:to_s)))
end
task default: %i[ terraform ansible ]
diff --git a/lotus-land-story/main.yml b/lotus-land-story/main.yml
index 261afe3..776b9a7 100644
--- a/lotus-land-story/main.yml
+++ b/lotus-land-story/main.yml
@@ -15,7 +15,7 @@
- name: Always mount the lotus-land-story volume
ansible.builtin.lineinfile:
dest: /etc/fstab
- line: /dev/disk/by-id/scsi-0Linode_Volume_lotus-land-story /mnt/lotus-land-story ext4 defaults,noatime,nofail 0 2
+ line: "{{ linode_volume }} /mnt/lotus-land-story ext4 defaults,noatime,nofail 0 2"
state: present
- name: Make /mnt/lotus-land-story/postgresql
ansible.builtin.file: