Skip to content

Commit 0d2226d

Browse files
committed
[docs] Fixed Certbot SSL ansible playbook sample #590
Closes #590
1 parent 8bc0bd4 commit 0d2226d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/user/certbot-ssl.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,22 @@ the following example:
4343
certbot_auto_renew_minute: "20"
4444
certbot_auto_renew_hour: "5"
4545
certbot_create_if_missing: true
46-
certbot_auto_renew_user: "<privileged-users-to-renew-certs>"
46+
# you may change this if needed
47+
certbot_auto_renew_user: "{{ ansible_user | default(lookup('env', 'USER')) }}"
4748
certbot_certs:
48-
- email: "<paste-your-email>"
49+
# set your email address here
50+
- email: "<paste-your-email-address-here>"
4951
domains:
5052
- "{{ inventory_hostname }}"
5153
pre_tasks:
5254
- name: Update APT package cache
5355
apt:
5456
update_cache: true
55-
changed_when: false
56-
retries: 5
57-
delay: 10
58-
register: result
59-
until: result is success
57+
changed_when: false
58+
retries: 5
59+
delay: 10
60+
register: result
61+
until: result is success
6062
6163
Read the `documentation of geerlingguy.certbot
6264
<https://github.com/geerlingguy/ansible-role-certbot#readme>`__ to learn

0 commit comments

Comments
 (0)