Skip to content

Commit 603b08d

Browse files
committed
Issue #83: More tweaks for Let's Encrypt example in chapter 12.
1 parent 3430ece commit 603b08d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

https-letsencrypt/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ This demonstrates generating valid TLS certificates using Let's Encrypt and Cert
1313

1414
1. Create a publicly-accessible VM running Ubuntu 18.04 (on your favorite cloud provider, like AWS, DigitalOcean, etc.).
1515
2. Point a valid domain name at this server's IP address (e.g. using Route53 or your DNS provider).
16-
3. Make sure your SSH key is added to the root user account.
17-
4. Make sure you can SSH into the server using `ssh root@domain.example.com` (where `domain.example.com` is the domain name you have pointed at the server's IP address).
16+
3. Make sure your SSH key is added to your user account, and your account has `sudo` access.
17+
4. Make sure you can SSH into the server using `ssh myuser@subdomain.example.com` (where `subdomain.example.com` is the domain name you have pointed at the server's IP address).
1818

1919
### 3 - Configure the inventory
2020

https-letsencrypt/inventory.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[letsencrypt]
2-
domain.example.com ansible_ssh_user=root [email protected]
2+
subdomain.example.com ansible_ssh_user=myuser [email protected]

https-letsencrypt/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- hosts: all
2+
- hosts: letsencrypt
33
gather_facts: false
44
become: true
55

@@ -15,7 +15,7 @@
1515
setup:
1616

1717
- name: Ensure apt cache is updated.
18-
apt: update_cache=yes cache_valid_time=600
18+
apt: update_cache=true cache_valid_time=600
1919

2020
roles:
2121
- geerlingguy.firewall

https-letsencrypt/vars/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ firewall_allowed_tcp_ports:
77

88
# Nginx settings.
99
nginx_vhosts: []
10-
nginx_remove_default_vhost: True
11-
nginx_ppa_use: True
10+
nginx_remove_default_vhost: true
11+
nginx_ppa_use: true
1212
nginx_ppa_version: stable
1313
nginx_docroot: /var/www/html
1414

1515
# Let's Encrypt certificate settings.
16-
certbot_create_if_missing: yes
16+
certbot_create_if_missing: true
1717
certbot_admin_email: "{{ letsencrypt_email }}"
1818
certbot_certs:
1919
- domains:

0 commit comments

Comments
 (0)