Skip to content

Instantly share code, notes, and snippets.

@jbma
Created September 29, 2016 19:03
Show Gist options
  • Save jbma/4c6d4638c0484a0fb553579ea1699898 to your computer and use it in GitHub Desktop.
Save jbma/4c6d4638c0484a0fb553579ea1699898 to your computer and use it in GitHub Desktop.
---
- name: download certbot
get_url: url=https://dl.eff.org/certbot-auto dest=/tmp/
- name: Chmod Certbot
command: chmod a+x certbot-auto chdir=/tmp
- name: Generate the certificates
command: ./certbot-auto certonly --standalone --agree-tos -m [email protected] -n -d {{item}} chdir=/tmp
with_items:
- "{{url}}"
- support.{{url}}
- blog.{{url}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment