Merge pull request #43 from nginxinc/(feature)/delete-license
Add option to delete license after installing NGINX Plus
This commit is contained in:
commit
85ed933a16
@ -66,6 +66,10 @@ license:
|
|||||||
certificate: license/nginx-repo.crt
|
certificate: license/nginx-repo.crt
|
||||||
key: license/nginx-repo.key
|
key: license/nginx-repo.key
|
||||||
|
|
||||||
|
# Delete NGINX Plus license after installation for security purposes.
|
||||||
|
# Default is true.
|
||||||
|
delete_license: true
|
||||||
|
|
||||||
# Enable uploading NGINX configuration files to your system.
|
# Enable uploading NGINX configuration files to your system.
|
||||||
# Default for uploading files is false.
|
# Default for uploading files is false.
|
||||||
# Default location of files is the files folder within the NGINX Ansible role.
|
# Default location of files is the files folder within the NGINX Ansible role.
|
||||||
|
5
tasks/plus/delete-license.yml
Normal file
5
tasks/plus/delete-license.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: "(All OSs) Delete NGINX Plus License"
|
||||||
|
file:
|
||||||
|
path: /etc/ssl/nginx
|
||||||
|
state: absent
|
@ -18,3 +18,6 @@
|
|||||||
name: nginx-plus
|
name: nginx-plus
|
||||||
state: present
|
state: present
|
||||||
notify: "(Handler: All OSs) Start NGINX"
|
notify: "(Handler: All OSs) Start NGINX"
|
||||||
|
|
||||||
|
- import_tasks: delete-license.yml
|
||||||
|
when: delete_license
|
||||||
|
Loading…
Reference in New Issue
Block a user