diff --git a/roles/certbot/tasks/main.yml b/roles/certbot/tasks/main.yml index 3896643..9677540 100644 --- a/roles/certbot/tasks/main.yml +++ b/roles/certbot/tasks/main.yml @@ -55,9 +55,14 @@ - name: ensure apache is configured for certbot copy: src=certbot.httpd.conf - dest=/etc/httpd/conf.d/certbot.conf + dest=/etc/httpd/conf.d/01_certbot.conf mode=0644 notify: reload httpd +- name: ensure old certbot apache config file is removed + file: + path=/etc/httpd/conf.d/certbot.conf + state=absent + notify: reload httpd - meta: flush_handlers - name: ensure letsencrypt account data are installed