Skip to content

Commit 3430ece

Browse files
committed
Modify Lets Encrypt example to work correctly for non-root users.
1 parent 6a8fb24 commit 3430ece

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

https-letsencrypt/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ Run the Ansible playbook to automatically generate a Let's Encrypt certificate a
2929

3030
ansible-playbook -i inventory main.yml
3131

32+
### 5 - Verify the certificate works
33+
34+
After the playbook completes, visit your site at the https URL and verify it works with a valid certificate: `https://domain.example.com/`
35+
36+
Or use openssl on the command line to verify the certificate details:
37+
38+
openssl s_client -showcerts -connect domain.example.com:443
39+
3240
## About the Author
3341

3442
This project was created by [Jeff Geerling](https://www.jeffgeerling.com/) as an example for [Ansible for DevOps](https://www.ansiblefordevops.com/).

https-letsencrypt/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
- hosts: all
3-
gather_facts: no
3+
gather_facts: false
4+
become: true
45

56
vars_files:
67
- vars/main.yml
78

89
pre_tasks:
910
- name: Install Python if not already present.
1011
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
11-
changed_when: False
12+
changed_when: false
1213

1314
- name: Gather facts after Python is definitely present.
1415
setup:

0 commit comments

Comments
 (0)