ansible-role-nginx/tasks/plus/setup-license.yml
Izak Eygelaar f79e6d0210 Allow making use of Ansible-vault to encrypt and decrypt sensitive certs and keys (#95)
* Allow making use of Ansible-vault to encrypt sensitive certs and keys
2019-02-01 18:59:56 +00:00

15 lines
322 B
YAML

---
- name: "(All OSs) Create SSL Directory"
file:
path: /etc/ssl/nginx
state: directory
- name: "(All OSs) Copy NGINX Plus Certificate and License Key"
copy:
src: "{{ item }}"
dest: /etc/ssl/nginx
decrypt: yes
with_items:
- "{{ nginx_license.certificate }}"
- "{{ nginx_license.key }}"