You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter_11_ansible.asciidoc
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,7 +249,12 @@ It's just as easy to fall into the Refactoring-Cat trap on the server!
249
249
250
250
////
251
251
252
+
// JAN: It feels a bit like something is missing here. You're talking about servers and DNS records. Yet, there's no real call to action for a reader.
253
+
// I ended up executing the initial Ansible command when I realized I should've already spun up the server and set DNS records.
254
+
// I'd suggest being more specific about what should I do as a reader. No need to go step by step. Just to clearly state: "Spin up your publicly accessible server", "Now set DNS A records that point to your server"
255
+
// JAN: It would also make sense to tell the reader to point both domains to the same server
252
256
257
+
// JAN: It would also be beneficial to state at least some range of server size (e.g., 2GB of memory). e.g., the smallest EC2 instances can have quite some troubles when running Django in Docker
253
258
254
259
=== Configuring Domains for Staging and Live
255
260
@@ -336,6 +341,8 @@ The "hate" part is that the actual syntax is surprisingly fiddly to get right:
336
341
the difference between lists and key/value maps is subtle and I can never quite remember it honestly.]
337
342
for.
338
343
344
+
// JAN: It would be worth mentioning what to do to be able to execute this ansible command. I haven't noticed anything about adding a record to authorized_keys
345
+
339
346
// DAVID: I didn't know if this was an example or a file to create.
340
347
// I think it's the latter, it would be good to make that clear.
341
348
@@ -369,6 +376,10 @@ for.
369
376
----
370
377
====
371
378
379
+
// JAN: I'm stuck here. Docker is not installed on EC2 instance with Ubuntu. Googling it, it seems like this is some outdated Docker installation process
380
+
The one described here is much closer to Docker's installation guide: https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-22-04
381
+
382
+
372
383
<1> An Ansible playbook is a series of "tasks"
373
384
(so in that sense it's still quite sequential and procedural),
374
385
but the individual tasks themselves are quite declarative.
0 commit comments