Commit 2abcfad5 by John Jarvis

local action for cert and key stat before copy

parent d8414362
......@@ -78,10 +78,14 @@
# Check to see if the ssl cert/key exists before copying.
# This extra check is done to prevent failures when
# ansible-playbook is run locally
- stat: path={{ NGINX_SSL_CERTIFICATE }}
- local_action:
module: stat
path: "{{ NGINX_SSL_CERTIFICATE }}"
register: ssl_cert
- stat: path={{ NGINX_SSL_KEY }}
- local_action:
module: stat
path: "{{ NGINX_SSL_KEY }}"
register: ssl_key
- name: copy ssl cert
......
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