Add option to delete license after installing NGINX Plus

This commit is contained in:
Alessandro Fael Garcia 2018-08-01 11:40:35 -07:00
parent 882ac54b64
commit 2a7184a06b
3 changed files with 12 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1,5 @@
---
- name: "(All OSs) Delete NGINX Plus License"
file:
path: /etc/ssl/nginx
state: absent

View File

@ -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