File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ Run the Ansible playbook to automatically generate a Let's Encrypt certificate a
29
29
30
30
ansible-playbook -i inventory main.yml
31
31
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
+
32
40
## About the Author
33
41
34
42
This project was created by [ Jeff Geerling] ( https://www.jeffgeerling.com/ ) as an example for [ Ansible for DevOps] ( https://www.ansiblefordevops.com/ ) .
Original file line number Diff line number Diff line change 1
1
---
2
2
- hosts : all
3
- gather_facts : no
3
+ gather_facts : false
4
+ become : true
4
5
5
6
vars_files :
6
7
- vars/main.yml
7
8
8
9
pre_tasks :
9
10
- name : Install Python if not already present.
10
11
raw : test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
11
- changed_when : False
12
+ changed_when : false
12
13
13
14
- name : Gather facts after Python is definitely present.
14
15
setup :
You can’t perform that action at this time.
0 commit comments