Rename Certbot executable
This commit is contained in:
parent
fadb6242a5
commit
3976546fa7
3 changed files with 13 additions and 3 deletions
|
@ -56,6 +56,16 @@ def test_nginx_default_removed(host):
|
|||
assert not host.file('/etc/nginx/sites-enabled/default').exists
|
||||
|
||||
|
||||
def test_certbot_exe(host):
|
||||
f = host.file('/usr/local/bin/certbot-auto')
|
||||
|
||||
assert f.exists
|
||||
assert f.is_file
|
||||
assert f.user == 'root'
|
||||
assert f.group == 'root'
|
||||
assert f.mode == 0o755
|
||||
|
||||
|
||||
def test_certbot_cli_config(host):
|
||||
f = host.file('/etc/letsencrypt/cli.ini')
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
- name: Install Certbot
|
||||
copy:
|
||||
src: files/certbot/certbot
|
||||
dest: /usr/local/bin/certbot
|
||||
src: files/certbot/certbot-auto
|
||||
dest: /usr/local/bin/certbot-auto
|
||||
mode: 'u=rwx,g=rx,o=rx'
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -32,7 +32,7 @@
|
|||
group: root
|
||||
|
||||
- name: Obtain Let's Encrypt certificate
|
||||
command: 'certbot certonly'
|
||||
command: 'certbot-auto certonly'
|
||||
register: common__certbot__result
|
||||
when: common__certbot__run|bool
|
||||
changed_when: >-
|
||||
|
|
Loading…
Reference in a new issue