2020-09-20 12:15:28 +02:00
|
|
|
---
|
|
|
|
- name: Prepare
|
|
|
|
hosts: localhost
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: Create ephemeral license certificate file from b64 decoded env var
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.copy:
|
2020-09-20 12:15:28 +02:00
|
|
|
content: "{{ lookup('env','NGINX_CRT') | b64decode }}"
|
2021-03-22 21:17:54 +01:00
|
|
|
dest: ../../files/license/nginx-repo.crt
|
2021-06-02 17:47:44 +02:00
|
|
|
force: false
|
2020-09-20 12:15:28 +02:00
|
|
|
mode: 0444
|
|
|
|
|
|
|
|
- name: Create ephemeral license key file from b64 decoded env var
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.copy:
|
2020-09-20 12:15:28 +02:00
|
|
|
content: "{{ lookup('env','NGINX_KEY') | b64decode }}"
|
2021-03-22 21:17:54 +01:00
|
|
|
dest: ../../files/license/nginx-repo.key
|
2021-06-02 17:47:44 +02:00
|
|
|
force: false
|
2020-09-20 12:15:28 +02:00
|
|
|
mode: 0444
|