Use git clone method of acme.sh installation

This commit is contained in:
staticsafe 2019-01-12 19:12:48 -05:00
parent e1a60b4976
commit 6c46b72fa1
1 changed files with 7 additions and 1 deletions

View File

@ -4,8 +4,14 @@
- name: Make TLS certificate storage directory - name: Make TLS certificate storage directory
file: name=/etc/ssl/letsencrypt/ state=directory file: name=/etc/ssl/letsencrypt/ state=directory
- name: Make sure /opt exists
file: name=/opt state=directory
- name: Clone acme.sh repository
git:
repo: https://github.com/Neilpang/acme.sh.git
dest: /opt/acme.sh
- name: Install acme.sh - name: Install acme.sh
shell: wget -O - https://get.acme.sh | sh shell: /opt/acme.sh/acme.sh --install
- name: Generate certificate using acme.sh - name: Generate certificate using acme.sh
shell: /root/.acme.sh/acme.sh --issue --standalone -d {{ LOCAL_DOMAIN }} --pre-hook "service nginx stop" shell: /root/.acme.sh/acme.sh --issue --standalone -d {{ LOCAL_DOMAIN }} --pre-hook "service nginx stop"
- name: Install certificate in storage directory - name: Install certificate in storage directory