Commit 1af8c9fd authored by Imran Hussain's avatar Imran Hussain

Remove the letsencrypt role from the sucs repo.

I don't update it here, going to include it from via gitsubmodules
parent f9567e7e
- name: reload apache2
service: name=apache2 state=reloaded
- name: install stuff
apt: pkg={{ item }} state=installed
- ca-certificates
- name: add jessie-backports
apt_repository: repo='deb jessie-backports main' state=present
when: ansible_os_family == "Debian" and ansible_distribution_release == "jessie"
- name: install stuff we need from backports
apt: pkg={{ item }} default_release=jessie-backports state=installed
- certbot
\ No newline at end of file
- include: debian.yml
when: ansible_os_family == "Debian"
- name: do we already have a cert?
stat: path=/etc/letsencrypt/live/{{ le_cert_domains[0] }}/fullchain.pem
register: le_firstrun
- name: No cert found! Attempt to get the certificate
command: "certbot --keep --expand --non-interactive --agree-tos --email {{ le_email }} certonly --webroot -w {{ le_webroot_path }} -d {{ le_cert_domains | join(',') }}"
when: le_firstrun.stat.exists == False
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment