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